Pantheon\Terminus\Models\Environment::serialize PHP Метод

serialize() публичный Метод

Formats environment object into an associative array for output
public serialize ( ) : array
Результат array Associative array of data for output
    public function serialize()
    {
        $info = ['id' => $this->id, 'created' => date($this->getConfig()->get('date_format'), $this->get('environment_created')), 'domain' => $this->domain(), 'onserverdev' => $this->get('on_server_development') ? 'true' : 'false', 'locked' => $this->getLock()->isLocked() ? 'true' : 'false', 'initialized' => $this->isInitialized() ? 'true' : 'false', 'connection_mode' => $this->get('connection_mode'), 'php_version' => $this->get('php_version')];
        return $info;
    }