BetterReflection\Reflection\ReflectionClass::export PHP Method

export() public static method

Create a reflection and return the string representation of a named class
public static export ( string $className = null ) : string
$className string
return 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

 /**
  * {@inheritDoc}
  */
 public static function export($argument, $return = false)
 {
     return BetterReflectionClass::export(...func_get_args());
 }
All Usage Examples Of BetterReflection\Reflection\ReflectionClass::export