public function isConstructor()
    {
        $name = explode('\\', $this->declaringClass->getName());
        $name = array_pop($name);

        return in_array($this->getShortName(), array('__construct', $name));
    }
public function isConstructor()
    {
        $name = explode('\\', $this->declaringClass->getName());
        $name = array_pop($name);

        return in_array($this->getShortName(), array('__construct', $name));
    }
public function isConstructor ( ) { $ name = explode ( '\\' , $ this -> declaringClass -> getName ( ) ) ; $ name = array_pop ( $ name ) ; return in_array ( $ this -> getShortName ( ) , array ( '__construct' , $ name ) ) ; }
Checks if the method is a constructor.

@return bool  TRUE if the method is a constructor, otherwise FALSE
Checks if the method is a constructor .