public function toArray()
    {
        return (array) array_merge($this->composerJson, [
            'id'            => $this->getId(),
            'name'          => $this->getName(),
            'version'       => $this->getVersion(),
            'path'          => $this->getPath(),
            'enabled'       => $this->isEnabled(),
            'icon'          => $this->getIcon(),
            'hasAssets'     => $this->hasAssets(),
            'hasMigrations' => $this->hasMigrations(),
        ]);
    }
public function toArray()
    {
        return (array) array_merge($this->composerJson, [
            'id'            => $this->getId(),
            'name'          => $this->getName(),
            'version'       => $this->getVersion(),
            'path'          => $this->getPath(),
            'enabled'       => $this->isEnabled(),
            'icon'          => $this->getIcon(),
            'hasAssets'     => $this->hasAssets(),
            'hasMigrations' => $this->hasMigrations(),
        ]);
    }
public function toArray ( ) { return ( array ) array_merge ( $ this -> composerJson , [ 'id' => $ this -> getId ( ) , 'name' => $ this -> getName ( ) , 'version' => $ this -> getVersion ( ) , 'path' => $ this -> getPath ( ) , 'enabled' => $ this -> isEnabled ( ) , 'icon' => $ this -> getIcon ( ) , 'hasAssets' => $ this -> hasAssets ( ) , 'hasMigrations' => $ this -> hasMigrations ( ) , ] ) ; }
Generates an array result for the object.

@return array
Generates an array result for the object .