public function __toString() { $result = ''; if ($this->reflect->isPrivate()) { $result .= 'private '; } else { if ($this->reflect->isProtected()) { $result .= 'protected '; } else { if ($this->reflect->isPublic()) { $result .= 'public '; } } } if ($this->reflect->isStatic()) { $result .= 'static '; } if ($this->reflect->isAbstract()) { $result .= 'abstract '; } if ($this->reflect->isFinal()) { $result .= 'final '; } return $result . parent::__toString(); }