/** * @return array */ public function toArray() { return ['coords' => $this->coords->toArray(), 'shot' => $this->shot]; }
/** * @return array */ public function toArray() { return ['result' => $this->result, 'target' => $this->target->toArray(), 'startPoint' => is_object($this->startPoint) ? $this->startPoint->toArray() : [], 'endPoint' => is_object($this->endPoint) ? $this->endPoint->toArray() : []]; }
/** * @return array */ public function toArray() { return ['startPoint' => $this->startPoint->toArray(), 'endPoint' => $this->endPoint->toArray(), 'hits' => $this->hits]; }