(PHP 5, PHP 7)
ReflectionMethod::export — Export a reflection method
Esta função está OBSOLETA a partir do PHP 7.4.0 e foi REMOVIDA a partir do PHP 8.0.0. Depender dessa função é altamente desencorajado.
$class
, string $name
, bool $return
= false
): stringExports a ReflectionMethod.
class
The class name.
name
The name of the method.
return
Passar true
irá retornar o export,
em vez de emiti-lo. Passar false
(padrão) fará o oposto.
Se o parâmetro return
for true
então o export é retornado como uma string,
senão retorna null
.