src/Sulu/Bundle/CategoryBundle/Api/Category.php
public function toArray()
    {
        return [
            'id' => $this->getId(),
            'key' => $this->getKey(),
            'name' => $this->getName(),
            'meta' => $this->getMeta(),
            'keywords' => $this->getKeywords(),
            'defaultLocale' => $this->getDefaultLocale(),
            'creator' => $this->getCreator(),
            'changer' => $this->getChanger(),
            'created' => $this->getCreated(),
            'changed' => $this->getChanged(),
        ];
    }
public function toArray()
    {
        return [
            'id' => $this->getId(),
            'key' => $this->getKey(),
            'name' => $this->getName(),
            'meta' => $this->getMeta(),
            'keywords' => $this->getKeywords(),
            'defaultLocale' => $this->getDefaultLocale(),
            'creator' => $this->getCreator(),
            'changer' => $this->getChanger(),
            'created' => $this->getCreated(),
            'changed' => $this->getChanged(),
        ];
    }
public function toArray ( ) { return [ 'id' => $ this -> getId ( ) , 'key' => $ this -> getKey ( ) , 'name' => $ this -> getName ( ) , 'meta' => $ this -> getMeta ( ) , 'keywords' => $ this -> getKeywords ( ) , 'defaultLocale' => $ this -> getDefaultLocale ( ) , 'creator' => $ this -> getCreator ( ) , 'changer' => $ this -> getChanger ( ) , 'created' => $ this -> getCreated ( ) , 'changed' => $ this -> getChanged ( ) , ] ; }
Returns an array representation of the object.

@return array
Returns an array representation of the object .