CakeFest 2024: The Official CakePHP Conference

ReflectionClassConstant::__construct

(PHP 7 >= 7.1.0, PHP 8)

ReflectionClassConstant::__constructСоздаёт объект ReflectionClassConstant

Описание

public ReflectionClassConstant::__construct(object|string $class, string $constant)

Создаёт новый объект ReflectionClassConstant.

Список параметров

class

Строка (string), содержащая имя класса для отражения, либо объект (object).

constant

Имя константы класса.

Ошибки

Выбрасывает Exception в случае, если переданная константа класса не существует.

Смотрите также

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top