ParaTest\Parser\Parser::getClass PHP Méthode

getClass() public méthode

Returns the fully constructed class with methods or null if the class is abstract
public getClass ( ) : null | ParaTest\Parser\ParsedClass
Résultat null | ParaTest\Parser\ParsedClass
    public function getClass()
    {
        return $this->refl->isAbstract() ? null : new ParsedClass($this->refl->getDocComment(), $this->getCleanReflectionName(), $this->refl->getNamespaceName(), $this->getMethods());
    }

Usage Example

Exemple #1
0
 /**
  * Parses a test case and returns the test class
  * @return ParsedClass
  */
 protected function parseFile($path)
 {
     $parser = new Parser($path);
     return $parser->getClass();
 }
All Usage Examples Of ParaTest\Parser\Parser::getClass