SlevomatCodingStandard\Sniffs\Namespaces\NoKeywordsException::__construct PHP Method

__construct() public method

public __construct ( string $sniffClassName, string $propertyName, Exception $previous = null )
$sniffClassName string
$propertyName string
$previous Exception
    public function __construct($sniffClassName, $propertyName, \Exception $previous = null)
    {
        parent::__construct(sprintf('Sniff %s requires an array of keywords set in property %s', $sniffClassName, $propertyName), 0, $previous);
        $this->sniffClassName = $sniffClassName;
        $this->propertyName = $propertyName;
    }