public function asString()
    {
        $display = function ($lines, $length, $loop = 0) use (&$display) {
            $output = '';
            foreach ($lines as $line) {
                $line = is_a($line, 'Deflection\Element\AbstractElement') ? $line->getElement() : $line;
                if (is_array($line)) {
                    $output .= $display($line, $length, $loop+1);
                } else {
                    $size = mb_strlen($line)+($length*$loop);
                    $output .= str_pad($line, $size, ' ', STR_PAD_LEFT)."\n";
                }
            }
            return $output;
        };
        return !$this->class ?: "<?php\n".$display($this->class->getElement(), $this->tab);
    }
public function asString()
    {
        $display = function ($lines, $length, $loop = 0) use (&$display) {
            $output = '';
            foreach ($lines as $line) {
                $line = is_a($line, 'Deflection\Element\AbstractElement') ? $line->getElement() : $line;
                if (is_array($line)) {
                    $output .= $display($line, $length, $loop+1);
                } else {
                    $size = mb_strlen($line)+($length*$loop);
                    $output .= str_pad($line, $size, ' ', STR_PAD_LEFT)."\n";
                }
            }
            return $output;
        };
        return !$this->class ?: "<?php\n".$display($this->class->getElement(), $this->tab);
    }
public function asString ( ) { $ display = function ( $ lines , $ length , $ loop = 0 ) use ( & $ display ) { $ output = '' ; foreach ( $ lines as $ line ) { $ line = is_a ( $ line , 'Deflection\Element\AbstractElement' ) ? $ line -> getElement ( ) : $ line ; if ( is_array ( $ line ) ) { $ output .= $ display ( $ line , $ length , $ loop + 1 ) ; } else { $ size = mb_strlen ( $ line ) + ( $ length * $ loop ) ; $ output .= str_pad ( $ line , $ size , ' ' , STR_PAD_LEFT ) . "\n" ; } } return $ output ; } ; return ! $ this -> class ? : "<?php\n" . $ display ( $ this -> class -> getElement ( ) , $ this -> tab ) ; }
Returns class definition as a string

@return string
Returns class definition as a string