BetterReflection\Reflection\ReflectionClass::export PHP Метод

export() публичный статический Метод

Create a reflection and return the string representation of a named class
public static export ( string $className = null ) : string
$className string
Результат string
    public static function export($className = null)
    {
        if (null === $className) {
            throw new \InvalidArgumentException('Class name must be provided');
        }
        $reflection = self::createFromName($className);
        return $reflection->__toString();
    }

Usage Example

Пример #1
0
 /**
  * {@inheritDoc}
  */
 public static function export($argument, $return = false)
 {
     return BetterReflectionClass::export(...func_get_args());
 }
All Usage Examples Of BetterReflection\Reflection\ReflectionClass::export