public function __construct(AbstractModel $model, $relationship) { $this->model = $model; $this->relationship = $relationship; }