protected function classes()
    {
        list($items, $pattern) = array(array(), '/\\.[^.\\s]{3,4}$/');

        $files = glob($this->commands . '/*.php');

        $path = strlen($this->commands . DIRECTORY_SEPARATOR);

        foreach ((array) $files as $file) {
            $substring = substr($file, $path);

            $class = preg_replace($pattern, '', $substring);

            $class = $this->namespace . '\\' . $class;

            $reflection = new \ReflectionClass($class);

            $reflection->isAbstract() || $items[] = $class;
        }

        return $items;
    }
protected function classes()
    {
        list($items, $pattern) = array(array(), '/\\.[^.\\s]{3,4}$/');

        $files = glob($this->commands . '/*.php');

        $path = strlen($this->commands . DIRECTORY_SEPARATOR);

        foreach ((array) $files as $file) {
            $substring = substr($file, $path);

            $class = preg_replace($pattern, '', $substring);

            $class = $this->namespace . '\\' . $class;

            $reflection = new \ReflectionClass($class);

            $reflection->isAbstract() || $items[] = $class;
        }

        return $items;
    }
protected function classes ( ) { list ( $ items , $ pattern ) = array ( array ( ) , '/\\.[^.\\s]{3,4}$/' ) ; $ files = glob ( $ this -> commands . '/*.php' ) ; $ path = strlen ( $ this -> commands . DIRECTORY_SEPARATOR ) ; foreach ( ( array ) $ files as $ file ) { $ substring = substr ( $ file , $ path ) ; $ class = preg_replace ( $ pattern , '' , $ substring ) ; $ class = $ this -> namespace . '\\' . $ class ; $ reflection = new \ ReflectionClass ( $ class ) ; $ reflection -> isAbstract ( ) || $ items [ ] = $ class ; } return $ items ; }
Returns an array of command classes.

@return string[]
Returns an array of command classes .