Isswp101\Persimmon\Elasticsearch\DocumentPath::getPath PHP Method

getPath() public method

public getPath ( )
    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);
    }