public function getElement()
    {
        if ($this->getDocblock()) {
            $this->setLines($this->getDocblock()->getElement());
        }

        $name = '';
        if ($this->getName() and !is_array($this->getValue())) {
            $name = ($this->getType() ? $this->getType().' ' : '')
                .'$'.$this->getName().
                ($this->getValue() ? ' = '.$this->getValue() : '').';';
            $this->addLine($name);
        } else if ($this->getName() and is_array($this->getValue())) {
            $value = $this->getValue();
            $begin = array_shift($value);
            $end = array_pop($value);
            $value[] = $end.';';
            $this->addLine(($this->getType() ? $this->getType().' ' : '').'$'.$this->getName().' = '.$begin);
            $this->addLine($value);
        }


        return $this->getLines();
    }
public function getElement()
    {
        if ($this->getDocblock()) {
            $this->setLines($this->getDocblock()->getElement());
        }

        $name = '';
        if ($this->getName() and !is_array($this->getValue())) {
            $name = ($this->getType() ? $this->getType().' ' : '')
                .'$'.$this->getName().
                ($this->getValue() ? ' = '.$this->getValue() : '').';';
            $this->addLine($name);
        } else if ($this->getName() and is_array($this->getValue())) {
            $value = $this->getValue();
            $begin = array_shift($value);
            $end = array_pop($value);
            $value[] = $end.';';
            $this->addLine(($this->getType() ? $this->getType().' ' : '').'$'.$this->getName().' = '.$begin);
            $this->addLine($value);
        }


        return $this->getLines();
    }
public function getElement ( ) { if ( $ this -> getDocblock ( ) ) { $ this -> setLines ( $ this -> getDocblock ( ) -> getElement ( ) ) ; } $ name = '' ; if ( $ this -> getName ( ) and ! is_array ( $ this -> getValue ( ) ) ) { $ name = ( $ this -> getType ( ) ? $ this -> getType ( ) . ' ' : '' ) . '$' . $ this -> getName ( ) . ( $ this -> getValue ( ) ? ' = ' . $ this -> getValue ( ) : '' ) . ';' ; $ this -> addLine ( $ name ) ; } else if ( $ this -> getName ( ) and is_array ( $ this -> getValue ( ) ) ) { $ value = $ this -> getValue ( ) ; $ begin = array_shift ( $ value ) ; $ end = array_pop ( $ value ) ; $ value [ ] = $ end . ';' ; $ this -> addLine ( ( $ this -> getType ( ) ? $ this -> getType ( ) . ' ' : '' ) . '$' . $ this -> getName ( ) . ' = ' . $ begin ) ; $ this -> addLine ( $ value ) ; } return $ this -> getLines ( ) ; }
Return param content

@return array
Return param content