getMethods() public static method

Returns array of public (static, non-static and magic) methods.
public static getMethods ( $class ) : array
return array
コード例 #1
0
ファイル: SmartObject.php プロジェクト: nette/utils
 /**
  * @return bool
  */
 public function __isset($name)
 {
     $uname = ucfirst($name);
     return ObjectMixin::getMagicProperty(get_class($this), $name) || $name !== '' && ($methods = ObjectMixin::getMethods(get_class($this))) && (isset($methods['get' . $uname]) || isset($methods['is' . $uname]));
 }