hasProperty() public static méthode

Checks if the public non-static property exists.
public static hasProperty ( $class, $name ) : boolean | 'event'
Résultat boolean | 'event'
Exemple #1
0
 /**
  * @return void
  * @throws MemberAccessException
  */
 public function __unset($name)
 {
     $class = get_class($this);
     if (!ObjectMixin::hasProperty($class, $name)) {
         throw new MemberAccessException("Cannot unset the property {$class}::\${$name}.");
     }
 }