for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Getnet\API;
/**
* Class Device
*
* @package Getnet\API
*/
class Device implements \JsonSerializable
{
/** @var */
private $device_id;
private $ip_address;
* Device constructor.
* @param $device_id
public function __construct($device_id)
$this->device_id = $device_id;
}
* @return array|mixed
public function jsonSerialize()
return get_object_vars($this);
* @return mixed
public function getDeviceId()
return $this->device_id;
* @return $this
public function setDeviceId($device_id)
$this->device_id = (string)$device_id;
return $this;
public function getIpAddress()
return $this->ip_address;
* @param $ip_address
public function setIpAddress($ip_address)
$this->ip_address = (string)$ip_address;