src/Components/Path.php
public function getSegments() {

            if(!isset($this->segments))
                $this->segments = explode('/', $this->path);

            return $this->segments;

        }
public function getSegments() {

            if(!isset($this->segments))
                $this->segments = explode('/', $this->path);

            return $this->segments;

        }
public function getSegments ( ) { if ( ! isset ( $ this -> segments ) ) $ this -> segments = explode ( '/' , $ this -> path ) ; return $ this -> segments ; }
Get path segments
@return  array       Returns path segments
Get path segments