Ejemplo n.º 1
0
 /**
  * Returns a AspectDefinition from a token array.
  *
  * This method will use a set of other methods to parse a token array and retrieve any
  * possible information from it.
  * This information will be entered into a AspectDefinition object.
  *
  * @param array   $tokens       The token array containing structure tokens
  * @param boolean $getRecursive Do we have to get the ancestral conditions as well?
  *
  * @return \AppserverIo\Doppelgaenger\Interfaces\StructureDefinitionInterface
  */
 protected function getDefinitionFromTokens($tokens, $getRecursive = true)
 {
     // First of all we need a new AspectDefinition to fill
     $this->currentDefinition = new AspectDefinition();
     $this->currentDefinition = parent::getDefinitionFromTokens($tokens, $getRecursive);
     return $this->currentDefinition;
 }
Ejemplo n.º 2
0
 /**
  * Default constructor
  */
 public function __construct()
 {
     $filePath = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Data' . DIRECTORY_SEPARATOR . 'ParserTest' . DIRECTORY_SEPARATOR . 'BasicTestClass.php';
     $this->testClass = new ClassParser($filePath, new Config());
     $this->resultClass = $this->testClass->getDefinition();
 }