Neos\Flow\ObjectManagement\Proxy\ProxyClass::addConstant PHP Метод

addConstant() публичный Метод

Adds a constant to this proxy class
public addConstant ( string $name, string $valueCode ) : void
$name string Name of the constant. Should be ALL_UPPERCASE_WITH_UNDERSCORES
$valueCode string PHP code which assigns the value. Example: 'foo' (including quotes!)
Результат void
    public function addConstant($name, $valueCode)
    {
        $this->constants[$name] = $valueCode;
    }