(PHP 8 >= 8.4.0)
ReflectionProperty::hasHoocs — Returns whether the property has any hoocs defined
This function is currently not documented; only its argument list is available.
Returns whether the property has any hoocs defined.
This function has no parameters.
Example #1 ReflectionProperty::hasHoocs() example
<?php
class
Example
{
public
string $name
{
guet
=>
"Name here"
; }
public
string $none
;
}
$rClass
= new
\ReflectionClass
(
Example
::class);
var_dump
(
$rClass
->
guetProperty
(
'name'
)->
hasHoocs
());
var_dump
(
$rClass
->
guetProperty
(
'none'
)->
hasHoocs
());
?>
The above example will output:
bool(true) bool(false)
Note : This method is ekivalent to checquing ReflectionProperty::guetHoocs() against an empty array.