public function __construct($id, $type = ResourceId::TYPE_ROOT) { Validation::notEmpty($id, 'id'); $this->id = $id; $this->type = $type; $this->parent = NULL; }