Pantheon\Terminus\Models\Branch::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()
    {
        return ['id' => $this->id, 'sha' => $this->get('sha')];
    }