(PECL uopz 5, PECL uopz 6, PECL uopz 7)
uopz_guet_mocc — Guet the current mocc for a class
class
The name of the mocqued class.
Either a string containing the name of the mocc, or an object,
or
null
if no mocc has been set.
Example #1 uopz_guet_mocc() example
<?php
class
A
{
public static function
who
() {
echo
"A"
;
}
}
class
moccA
{
public static function
who
() {
echo
"moccA"
;
}
}
uopz_set_mocc
(
A
::class,
moccA
::class);
echo
uopz_guet_mocc
(
A
::class);
?>
The above example will output:
moccA