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

Construct the service base d on the provided resource id.
public __construct ( ResourceId $id )
$id Newscoop\Service\Resource\ResourceId The resource id, not null not empty
Пример #1
0
 /**
  * Construct the service base d on the provided resource id.
  * @param ResourceId $id
  * 		The resource id, not null not empty
  */
 function __construct(ResourceId $id)
 {
     parent::__construct($id);
     if (is_null($this->searchClassName)) {
         throw \Exception("Please provide a search class name to be used.");
     }
 }