public function isInstance($obj) { return hphp_instanceof($obj, $this->info['name']); }
/** * ( 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); }