LMongo\Eloquent\Relations\BelongsTo::__construct PHP Метод

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

Create a new has many relationship instance.
public __construct ( Builder $query, Model $parent, string $foreignKey, string $relation ) : void
$query LMongo\Eloquent\Builder
$parent LMongo\Eloquent\Model
$foreignKey string
$relation string
Результат void
    public function __construct(Builder $query, Model $parent, $foreignKey, $relation)
    {
        $this->relation = $relation;
        $this->foreignKey = $foreignKey;
        parent::__construct($query, $parent);
    }