Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save omarkdev/bcd86e0c0065efc12ee659fb829bb155 to your computer and use it in GitHub Desktop.

Select an option

Save omarkdev/bcd86e0c0065efc12ee659fb829bb155 to your computer and use it in GitHub Desktop.

Revisions

  1. omarkdev created this gist Mar 9, 2020.
    13 changes: 13 additions & 0 deletions introduction-php-reflection-example-to-use-property-reflection.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    <?php

    class UserRepository
    { }

    class UserController {
    private $userRepository;

    public function __construct(UserRepository $repository)
    {
    $this->userRepository = $repository;
    }
    }