values = $values; } /** * Get the values formatted for PHP and JSON. * * @return array */ public function toArray() { return $this->values; } public function count() { return count($this->values); } public function getIterator() { return new \ArrayIterator($this->values); } public function jsonSerialize() { return $this->toArray(); } }