public __construct ( |
||
$id | The resource id, not null not empty |
function __construct(ResourceId $id)
{
Validation::notEmpty($id, 'id');
$this->id = $id;
$this->_init_();
if (is_null($this->entityClassName)) {
throw new \Exception("Please provide a entitity class name to be used");
}
}
/** * 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."); } }