public function toArray(): array
	{
		$array = [
			'id' => $this->getId(),
		];
		foreach (get_object_vars($this) as $prop => $value) {
			$array[$prop] = is_callable([$this->$prop,'toArray'])? $this->$prop->toArray() : $this->$prop;
		}

		return $array;
	}
public function toArray(): array
	{
		$array = [
			'id' => $this->getId(),
		];
		foreach (get_object_vars($this) as $prop => $value) {
			$array[$prop] = is_callable([$this->$prop,'toArray'])? $this->$prop->toArray() : $this->$prop;
		}

		return $array;
	}
public function toArray ( ) : array { $ array = [ 'id' => $ this -> getId ( ) , ] ; foreach ( get_object_vars ( $ this ) as $ prop => $ value ) { $ array [ $ prop ] = is_callable ( [ $ this -> $ prop , 'toArray' ] ) ? $ this -> $ prop -> toArray ( ) : $ this -> $ prop ; } return $ array ; }
Convert Interoperable Model to an array

@return array
Convert Interoperable Model to an array