public function toArray() : array
   {

      return [
         'x'      => $this->point->x,
         'y'      => $this->point->y,
         'width'  => $this->size->width,
         'height' => $this->size->height
      ];

   }
public function toArray() : array
   {

      return [
         'x'      => $this->point->x,
         'y'      => $this->point->y,
         'width'  => $this->size->width,
         'height' => $this->size->height
      ];

   }
public function toArray ( ) : array { return [ 'x' => $ this -> point -> x , 'y' => $ this -> point -> y , 'width' => $ this -> size -> width , 'height' => $ this -> size -> height ] ; }
Returns a array with all instance data. Used array keys are 'x', 'y', 'width' and 'height'.

@return array
Returns a array with all instance data . Used array keys are x y width and height .