protected function validate()
    {
        if (empty($this->author)) {
            throw new \Exception('Author is empty!');
        }

        if (empty($this->classname)) {
            throw new \Exception('Class name is empty!');
        }

        if (empty($this->namespace)) {
            throw new \Exception('Namespace is empty!');
        }

        /*if (empty($this->dbConfig)) {
            throw new \Exception('Database config name is empty!');
        }*/

        if (empty($this->dbTable)) {
            throw new \Exception('Database table name is empty!');
        }

        if (empty($this->cacheName)) {
            throw new \Exception('Cache name is empty!');
        }

        if (empty($this->cachePrefix)) {
            throw new \Exception('Cache prefix is empty!');
        }

        return $this;
    }
protected function validate()
    {
        if (empty($this->author)) {
            throw new \Exception('Author is empty!');
        }

        if (empty($this->classname)) {
            throw new \Exception('Class name is empty!');
        }

        if (empty($this->namespace)) {
            throw new \Exception('Namespace is empty!');
        }

        /*if (empty($this->dbConfig)) {
            throw new \Exception('Database config name is empty!');
        }*/

        if (empty($this->dbTable)) {
            throw new \Exception('Database table name is empty!');
        }

        if (empty($this->cacheName)) {
            throw new \Exception('Cache name is empty!');
        }

        if (empty($this->cachePrefix)) {
            throw new \Exception('Cache prefix is empty!');
        }

        return $this;
    }
protected function validate ( ) { if ( empty ( $ this -> author ) ) { throw new \ Exception ( 'Author is empty!' ) ; } if ( empty ( $ this -> classname ) ) { throw new \ Exception ( 'Class name is empty!' ) ; } if ( empty ( $ this -> namespace ) ) { throw new \ Exception ( 'Namespace is empty!' ) ; } /*if (empty($this->dbConfig)) {
            throw new \Exception('Database config name is empty!');
        }*/ if ( empty ( $ this -> dbTable ) ) { throw new \ Exception ( 'Database table name is empty!' ) ; } if ( empty ( $ this -> cacheName ) ) { throw new \ Exception ( 'Cache name is empty!' ) ; } if ( empty ( $ this -> cachePrefix ) ) { throw new \ Exception ( 'Cache prefix is empty!' ) ; } return $ this ; }
Check if config has required values.

@return self
@throws \Exception
Check if config has required values .