Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Neos
Flow
ObjectManagement
Proxy
ProxyClass
addConstant
Neos\Flow\ObjectManagement\Proxy\ProxyClass::addConstant PHP Метод
Документация по классу ProxyClass
Показать файл
Открыть проект
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; }
ProxyClass
__construct
addConstant
addInterfaces
addProperty
addTraits
buildClassDocumentation
getConstructor
getMethod
injectReflectionService
render
renderConstantsCode
renderPropertiesCode
renderTraitsCode