Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
Neos
Flow
ObjectManagement
Proxy
ProxyClass
addConstant
Neos\Flow\ObjectManagement\Proxy\ProxyClass::addConstant PHP Method
ProxyClass Class Documentation
Mostrar archivo
Open project: neos/flow-development-collection
addConstant()
public
method
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!)
return
void
public function addConstant($name, $valueCode) { $this->constants[$name] = $valueCode; }
ProxyClass
__construct
addConstant
addInterfaces
addProperty
addTraits
buildClassDocumentation
getConstructor
getMethod
injectReflectionService
render
renderConstantsCode
renderPropertiesCode
renderTraitsCode