Newscoop\Service\Resource\ResourceId::__construct PHP 메소드

__construct() 공개 메소드

The id should not be provided as a plain string it should be the actuall simple class name of the top class (Controller) that creates the resource.
public __construct ( string $id, $type = ResourceId::TYPE_ROOT )
$id string The id of the theme, must not be null or empty.
    public function __construct($id, $type = ResourceId::TYPE_ROOT)
    {
        Validation::notEmpty($id, 'id');
        $this->id = $id;
        $this->type = $type;
        $this->parent = NULL;
    }