BetterReflection\Reflection\ReflectionProperty::__toString PHP Метод

__toString() публичный Метод

Return string representation of this little old property.
public __toString ( ) : string
Результат string
    public function __toString()
    {
        return sprintf('Property [%s %s%s $%s ]', $this->isStatic() ? '' : ($this->isDefault() ? ' <default>' : ' <dynamic>'), $this->getVisibilityAsString(), $this->isStatic() ? ' static' : '', $this->getName());
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function __toString()
 {
     return $this->betterReflectionProperty->__toString();
 }