<?php
namespace MailChannels;
class Plan implements \JsonSerializable {
private $handle;
private $name;
public function __construct($handle, $name) {
$this->handle = $handle;
$this->name = $name;
}
public function getHandle() {
return $this->handle;
}
public function getName() {
return $this->name;
}
public function jsonSerialize() {
return [
'handle' => $this->handle,
'name' => $this->name
];
}
}