public function onDefect(Defect $event) { if (!isset($this->defects[$this->currentFile])) { $this->defects[$this->currentFile] = array(); } $event->formattedMessage = $this->formatMessage($event->getMessage()); $this->defects[$this->currentFile][] = $event; }
public function __construct(Node $node, $parameterTypeName, $parameterType, $method) { parent::__construct($node); $this->parameterTypeName = $parameterTypeName; $this->parameterType = $parameterType; $this->method = $method; }
public function __construct($propertyName, Property $node) { parent::__construct($node); $this->propertyName = $propertyName; }
public function __construct(ObjectType $objectType, ClassMethod $node) { parent::__construct($node); $this->objectType = $objectType; }
public function __construct(ObjectType $objectType, $property, Property $node) { parent::__construct($node); $this->objectType = $objectType; $this->property = $property; }
public function __construct(ObjectType $objectType, New_ $node) { parent::__construct($node); $this->objectType = $objectType; }
public function onDefect(Defect $event) { $this->output->writeln(sprintf("<fg=white;options=bold>%s @ l%d</fg=white;options=bold> : %s", $this->currentFile, $event->getLine(), $this->formatMessage($event->getMessage()))); $this->counter++; }