public function __construct($name, $value, array $data) { if (empty($value)) { throw new StorageException('Taxonomy value can not be empty!'); } $this->name = $name; $this->value = $value; $this->data = $data; }