/** * @return CheckfrontPackageModel|null */ public function getItem() { if ($this->isValid()) { return CheckfrontItemModel::create_from_checkfront($this->data); } }
public function current() { return CheckfrontItemModel::create_from_checkfront(parent::current(), $this->action); }
/** * @return ArrayList of CheckfrontBookableItems if this.items is set (empty ArrayList if not). */ public function getItems() { return new ArrayList(array_map(function ($item) { return CheckfrontItemModel::create_from_checkfront($item); }, isset($this['items']) ? $this['items'] : array())); }