for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DevoraliveCachet\Entity;
use JMS\Serializer\Annotation as JMS;
/**
* Class Point
* @package DevoraliveCachet\Entity
*/
class Point extends Entity
{
* @var int
* @JMS\Type("int")
* @JMS\SerializedName("metric_id")
protected $metricId;
* @JMS\SerializedName("value")
protected $value;
* @JMS\SerializedName("timestamp")
protected $timestamp;
* Point constructor.
public function __construct()
$this->timestamp = time();
}
* @return int
public function getMetricId()
return $this->metricId;
* @param int $metricId
*
* @return Point
public function setMetricId($metricId)
$this->metricId = $metricId;
return $this;
public function getValue()
return $this->value;
* @param int $value
public function setValue($value)
$this->value = $value;
public function getTimestamp(): int
return $this->timestamp;