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

@return array
Generates an array result for the object .