Warning: ReflectionMethod::__construct() expects exactly 1 parameter, 0 given in C:\xampp\htdocs\traits\index.php on line 16
pierwsza funkcja I cechy
Warning: ReflectionFunction::__construct() expects exactly 1 parameter, 0 given in C:\xampp\htdocs\traits\index.php on line 18
druga funkcja I cechy
<?php trait ezcReflectionReturnInfo { } class ezcReflectionMethod extends ReflectionMethod { use ezcReflectionReturnInfo; /* ... */ } class ezcReflectionFunction extends ReflectionFunction { use ezcReflectionReturnInfo; /* ... */ } $o = new ezcReflectionMethod(); $o->getReturnType(); $b = new ezcReflectionFunction(); $b->getReturnDescription(); ?>
Tak się zastanawiam. 10 wyświetleń. Żadnej odpowiedzi. Może ten post jakiś nie czytelny jest lub nie jasny;-)