public function toArray() : array
	{
		$items= is_array($this->items)? $this->items : [];
		foreach ($items as $itemIndex => $item) {
			if (is_object($item)&& is_callable([$item,'toArray'])) {
				try {
					$items[ $itemIndex ] = $item->toArray();
				} catch (\Exception $e) {
					throw $e;
				}
			}
		}
		return $items;
	}
public function toArray() : array
	{
		$items= is_array($this->items)? $this->items : [];
		foreach ($items as $itemIndex => $item) {
			if (is_object($item)&& is_callable([$item,'toArray'])) {
				try {
					$items[ $itemIndex ] = $item->toArray();
				} catch (\Exception $e) {
					throw $e;
				}
			}
		}
		return $items;
	}
public function toArray ( ) : array { $ items = is_array ( $ this -> items ) ? $ this -> items : [ ] ; foreach ( $ items as $ itemIndex => $ item ) { if ( is_object ( $ item ) && is_callable ( [ $ item , 'toArray' ] ) ) { try { $ items [ $ itemIndex ] = $ item -> toArray ( ) ; } catch ( \ Exception $ e ) { throw $ e ; } } } return $ items ; }
Get items in collection

@return array
Get items in collection