LMongo\Eloquent\Relations\BelongsToMany::__construct PHP 메소드

__construct() 공개 메소드

Create a new has many relationship instance.
public __construct ( Builder $query, Model $parent, string $foreignKey, string $otherKey ) : void
$query LMongo\Eloquent\Builder
$parent LMongo\Eloquent\Model
$foreignKey string
$otherKey string
리턴 void
    public function __construct(Builder $query, Model $parent, $foreignKey, $otherKey)
    {
        $this->otherKey = $otherKey;
        $this->foreignKey = $foreignKey;
        parent::__construct($query, $parent, $foreignKey);
    }