for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CarlosIO\Geckoboard\Data\Funnel;
/**
* Class Entry.
*/
class Entry
{
* @var string
protected $value;
protected $label;
public function __construct()
$this->value = null;
$this->label = null;
}
* @param $value
*
* @return $this
public function setValue($value)
$this->value = $value;
return $this;
* @param $label
public function setLabel($label)
$this->label = $label;
* @return string
public function getLabel()
return $this->label;
public function getValue()
return $this->value;
* @return array
public function toArray()
$result = array();
$value = $this->getValue();
if (null !== $value) {
$result['value'] = (string) $value;
$label = $this->getLabel();
if (null !== $label) {
$result['label'] = $label;
return $result;