Commit 0e5f7bae authored by Simon Welsh's avatar Simon Welsh

Swap protected to public

parent b6eb90f6
......@@ -7,23 +7,23 @@ use ConstMapAccess;
use InvalidArgumentException as IAE;
class Droplet extends Object {
protected int $id;
protected string $name;
protected int $memory;
protected int $vcpus;
protected int $disk;
protected bool $locked;
protected DateTime $created_at;
protected Status $status;
protected Set<int> $backup_ids;
protected Set<int> $snapshot_ids;
protected Set<string> $features;
protected Region $region;
protected Image $image;
protected string $size;
protected Vector<Network> $ipv4;
protected Vector<Network> $ipv6;
protected ?Kernel $kernel;
public int $id;
public string $name;
public int $memory;
public int $vcpus;
public int $disk;
public bool $locked;
public DateTime $created_at;
public Status $status;
public Set<int> $backup_ids;
public Set<int> $snapshot_ids;
public Set<string> $features;
public Region $region;
public Image $image;
public string $size;
public Vector<Network> $ipv4;
public Vector<Network> $ipv6;
public ?Kernel $kernel;
public function __construct(ConstMapAccess<string, mixed> $data) {
// id
......
......@@ -6,13 +6,13 @@ use ConstMapAccess;
use InvalidArgumentException as IAE;
class Image extends Object {
protected int $id;
protected string $name;
protected string $distribution;
protected ?string $slug;
protected bool $public;
protected Set<string> $regions;
protected int $min_disk_size;
public int $id;
public string $name;
public string $distribution;
public ?string $slug;
public bool $public;
public Set<string> $regions;
public int $min_disk_size;
public function __construct(ConstMapAccess<string, mixed> $data) {
// id
......
......@@ -6,11 +6,11 @@ use ConstMapAccess;
use InvalidArgumentException as IAE;
class Region extends Object {
protected string $slug;
protected string $name;
protected Set<string> $sizes;
protected bool $available;
protected Set<string> $features;
public string $slug;
public string $name;
public Set<string> $sizes;
public bool $available;
public Set<string> $features;
public function __construct(ConstMapAccess<string, mixed> $data) {
// slug
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment