*/
public function __construct(array $internals, $generator = null)
{
- $this->description = 'new '.get_class().'('.$this->serializeInternals($internals).')';
+ $this->description = 'new '.self::class.'('.$this->serializeInternals($internals).')';
parent::__construct($internals, $generator);
}
*/
public function __construct($generator = null)
{
- $this->description = 'new '.get_class().'()';
+ $this->description = 'new '.self::class.'()';
parent::__construct(array(), $generator);
}
*/
public function __construct($s, array $internals, $generator = null)
{
- $this->description = 'new '.get_class().'('.$this->serializeInternals($internals).')';
+ $this->description = 'new '.self::class.'('.$this->serializeInternals($internals).')';
parent::__construct($internals, $generator);
$this->s = (string)$s;
$this->lower = $lower;
$this->optional = $optional;
- $this->description = 'new '.get_class()."({$internal}, {$lower}, {$optional})";
+ $this->description = 'new '.self::class."({$internal}, {$lower}, {$optional})";
parent::__construct(array($internal), $generator);
}
throw new GrammerException('At least one internal parser is needed!');
}
- $this->description = 'new '.get_class().'('.$this->serializeInternals($internals).')';
+ $this->description = 'new '.self::class.'('.$this->serializeInternals($internals).')';
parent::__construct($internals, $generator);
}
throw new GrammerException('Pattern {$this->pattern} must anchor at the beginning of the string!');
}
- $this->description = 'new '.get_class().'('.var_export($this->pattern, true).')';
+ $this->description = 'new '.self::class.'('.var_export($this->pattern, true).')';
parent::__construct(array(), $generator);
}
{
$this->needle = (string)$needle;
- $this->description = 'new '.get_class().'('.var_export($this->needle, true).')';
+ $this->description = 'new '.self::class.'('.var_export($this->needle, true).')';
parent::__construct(array(), $generator);
}