Ejemplo n.º 1
0
 /**
  * @param ProfileFieldModel                     $resource
  * @param Guard                                 $guard
  * @param UserProfileFieldRepositoryInterface   $userProfileFields
  * @param ProfileFieldOptionRepositoryInterface $profileFieldOptionRepository
  */
 public function __construct(ProfileFieldModel $resource, Guard $guard, UserProfileFieldRepositoryInterface $userProfileFields, ProfileFieldOptionRepositoryInterface $profileFieldOptionRepository)
 {
     parent::__construct($resource);
     $this->guard = $guard;
     $this->userProfileFields = $userProfileFields;
     $this->profileFieldOptionRepository = $profileFieldOptionRepository;
 }
Ejemplo n.º 2
0
 /**
  * Create an abstract presenter instance.
  *
  * @param \Illuminate\Database\Eloquent\Model $resource
  *
  * @return void
  */
 public function __construct($resource)
 {
     parent::__construct($resource);
     $this->setting = app('setting');
 }
 /**
  * @param object      $resource
  * @param ViewFactory $viewFactory
  */
 public function __construct($resource, ViewFactory $viewFactory)
 {
     parent::__construct($resource);
     $this->viewFactory = $viewFactory;
 }
Ejemplo n.º 4
0
 /**
  * TagPresenter constructor.
  *
  * @param Tag $resource
  */
 public function __construct(Tag $resource)
 {
     parent::__construct($resource);
     $this->wrappedObject = $resource;
 }
Ejemplo n.º 5
0
 /**
  * Create a new instance.
  *
  * @param \GrahamCampbell\Credentials\Credentials     $credentials
  * @param \SebastianBergmann\Diff\Differ              $differ
  * @param \GrahamCampbell\Credentials\Models\Revision $resource
  *
  * @return void
  */
 public function __construct(Credentials $credentials, Differ $differ, $resource)
 {
     $this->credentials = $credentials;
     $this->differ = $differ;
     parent::__construct($resource);
 }
Ejemplo n.º 6
0
 /**
  * Create a new instance.
  *
  * @param \GrahamCampbell\Credentials\Credentials     $credentials
  * @param \GrahamCampbell\Credentials\Models\Revision $resource
  *
  * @return void
  */
 public function __construct(Credentials $credentials, $resource)
 {
     $this->credentials = $credentials;
     parent::__construct($resource);
 }
Ejemplo n.º 7
0
 /**
  * Create a new instance.
  *
  * @param \McCool\LaravelAutoPresenter\PresenterDecorator $presenter
  * @param \App\Models\User         $resource
  *
  * @return void
  */
 public function __construct(PresenterDecorator $presenter, $resource)
 {
     $this->presenter = $presenter;
     parent::__construct($resource);
 }
Ejemplo n.º 8
0
 /**
  * Create a new analysis presenter instance.
  *
  * @param \StyleCI\Storage\Stores\StoreInterface $storage
  * @param \StyleCI\StyleCI\Models\Analysis       $resource
  *
  * @return void
  */
 public function __construct(StoreInterface $storage, $resource)
 {
     $this->storage = $storage;
     parent::__construct($resource);
 }
Ejemplo n.º 9
0
 /**
  * @return ModerationLog
  */
 public function getWrappedObject()
 {
     return parent::getWrappedObject();
 }