/**
  * @param $entityName
  * @param ResourceInterface $resource
  * @param $linkRelation
  * @param ResourceInterface $linkResource
  */
 public function __construct($entityName, ResourceInterface $resource, $linkRelation, ResourceInterface $linkResource)
 {
     parent::__construct($entityName);
     $this->resource = $resource;
     $this->linkRelation = $linkRelation;
     $this->linkResource = $linkResource;
 }
 /**
  * @param $entityName
  * @param ResourceInterface $resource
  * @param $linkRelation
  * @param QueryBuilder $queryBuilder
  */
 public function __construct($entityName, ResourceInterface $resource, $linkRelation, QueryBuilder $queryBuilder = null)
 {
     parent::__construct($entityName);
     $this->resource = $resource;
     $this->linkRelation = $linkRelation;
     $this->queryBuilder = $queryBuilder;
 }
 /**
  * @param $entityName
  * @param ResourceInterface $resource
  * @param $propertyName
  * @param $propertyValue
  */
 public function __construct($entityName, ResourceInterface $resource, $propertyName, $propertyValue)
 {
     parent::__construct($entityName);
     $this->resource = $resource;
     $this->propertyName = $propertyName;
     $this->propertyValue = $propertyValue;
 }
Exemplo n.º 4
0
 /**
  * @param $entityName
  * @param ResourceInterface $resource
  */
 public function __construct($entityName, ResourceInterface $resource)
 {
     parent::__construct($entityName);
     $this->resource = $resource;
 }
Exemplo n.º 5
0
 /**
  * @param $entityName
  * @param $id
  * @param ResourceInterface $resource
  */
 public function __construct($entityName, $id, ResourceInterface $resource = null)
 {
     parent::__construct($entityName);
     $this->id = $id;
     $this->resource = $resource;
 }
 /**
  * @param $entityName
  * @param QueryBuilder $queryBuilder
  */
 public function __construct($entityName, QueryBuilder $queryBuilder = null)
 {
     parent::__construct($entityName);
     $this->queryBuilder = $queryBuilder;
 }