GraphAware\Neo4j\OGM\Tests\Integration\Model\Role::__construct PHP Метод

__construct() публичный Метод

public __construct ( Person $actor, Movie $movie, $roles = null )
$actor Person
$movie Movie
    public function __construct(Person $actor, Movie $movie, $roles = null)
    {
        $this->actor = $actor;
        $this->movie = $movie;
        if (is_array($roles)) {
            $this->roles = $roles;
        }
    }