src/MaterializedPathBehavior.php
public function getPath($asArray = true)
    {
        $raw = $this->owner->{$this->pathAttribute};
        return $asArray ? $this->convertPathFromPgToPhp($raw) : $raw;
    }
public function getPath($asArray = true)
    {
        $raw = $this->owner->{$this->pathAttribute};
        return $asArray ? $this->convertPathFromPgToPhp($raw) : $raw;
    }
public function getPath ( $ asArray = true ) { $ raw = $ this -> owner -> { $ this -> pathAttribute } ; return $ asArray ? $ this -> convertPathFromPgToPhp ( $ raw ) : $ raw ; }
Returns path of self node.

@param bool $asArray = true Return array instead string
@return array|string|\yii\db\ArrayExpression
Returns path of self node .