예제 #1
0
 public function isInstance($obj)
 {
     return hphp_instanceof($obj, $this->info['name']);
 }
예제 #2
0
 /**
  * ( excerpt from http://php.net/manual/en/reflectionclass.isinstance.php )
  *
  * Checks if an object is an instance of a class.
  *
  * @obj        mixed   The object being compared to.
  *
  * @return     mixed   Returns TRUE on success or FALSE on failure.
  */
 public function isInstance($obj)
 {
     return hphp_instanceof($obj, $this->name);
 }