public static function export($class, $name, $return = false)
    {
        $refl = new self($class, $name);
        $value = $refl->getValue();

        $str = \sprintf('Constant [ public %s %s ] { %s }', \gettype($value), $refl->getName(), $value);

        if ($return) {
            return $str;
        }

        echo $str . "\n";
    }
public static function export($class, $name, $return = false)
    {
        $refl = new self($class, $name);
        $value = $refl->getValue();

        $str = \sprintf('Constant [ public %s %s ] { %s }', \gettype($value), $refl->getName(), $value);

        if ($return) {
            return $str;
        }

        echo $str . "\n";
    }
public static function export ( $ class , $ name , $ return = false ) { $ refl = new self ( $ class , $ name ) ; $ value = $ refl -> getValue ( ) ; $ str = \ sprintf ( 'Constant [ public %s %s ] { %s }' , \ gettype ( $ value ) , $ refl -> getName ( ) , $ value ) ; if ( $ return ) { return $ str ; } echo $ str . "\n" ; }
Exports a reflection.

@param string|object $class
@param string        $name
@param bool          $return pass true to return the export, as opposed to emitting it

@return null|string
Exports a reflection .