public function getPath()
{
$res = [];
if (!is_null($this->index)) {
$res[] = $this->index;
}
if (!is_null($this->type)) {
$res[] = $this->type;
}
if (!is_null($this->id)) {
$res[] = $this->id;
}
return implode('/', $res);
}