Esempio n. 1
0
 /**
  * Constructor.
  *
  * @param \TokenReflection\Stream\StreamBase $tokenStream Token substream
  * @param \TokenReflection\Broker $broker Reflection broker
  * @param \TokenReflection\IReflection $parent Parent reflection object
  * @throws \TokenReflection\Exception\ParseException If an empty token stream was provided
  */
 public final function __construct(Stream $tokenStream, Broker $broker, IReflection $parent = null)
 {
     if (0 === $tokenStream->count()) {
         throw new Exception\ParseException($this, $tokenStream, 'Reflection token stream must not be empty.', Exception\ParseException::INVALID_ARGUMENT);
     }
     parent::__construct($tokenStream, $broker, $parent);
 }