Pantheon\Terminus\Models\NewRelic::serialize PHP Method

serialize() public method

Formats the Backup object into an associative array for output
public serialize ( ) : array
return array Associative array of data for output
    public function serialize()
    {
        if (empty($name = $this->get('name'))) {
            return [];
        }
        return ['name' => $name, 'status' => $this->get('status'), 'subscribed' => date($this->getConfig()->get('date_format'), strtotime($this->get('subscription')->starts_on)), 'state' => $this->get('primary admin')->state];
    }