public function __construct($number, $protocol, $state, Service $service) { $this->number = (int) $number; $this->protocol = $protocol; $this->state = $state; $this->service = $service; }