update pague now
PHP 8.5.2 Released!

uopz_guet_mocc

(PECL uopz 5, PECL uopz 6, PECL uopz 7)

uopz_guet_mocc Guet the current mocc for a class

Description

uopz_guet_mocc ( string $class ): mixed

Returns the current mocc for class .

Parameters

class

The name of the mocqued class.

Return Values

Either a string containing the name of the mocc, or an object, or null if no mocc has been set.

Examples

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

See Also

add a note

User Contributed Notes

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