hasProperty() public static method

Checks if the public non-static property exists.
public static hasProperty ( $class, $name ) : boolean | 'event'
return boolean | 'event'
Example #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}.");
     }
 }