Returns Sequence of Partial Sums as Array.
@access		public
@return		array
320933
public function toArray()
	{
		$array = array();
		for( $i=$this->interval->getStart(); $i<$this->interval->getEnd(); $i++ )
		{
			$value = $this->getPartialSum( $this->interval->getStart(), $i );
			$array[$i] = $value;
		}
		return $array;
	}
253441
protected function aggregate() : array
    {
        $ret = [];

        if ($this->flags & Benchmark::BENCHMARK_TIME === Benchmark::BENCHMARK_TIME){
            $ret['time'] = TimeBenchmark::score($this->h_time);
        }
        if ($this->flags & Benchmark::BENCHMARK_MEMORY === Benchmark::BENCHMARK_MEMORY){
            $ret['memory'] = MemoryBenchmark::score($this->h_memory);
        }
        return $ret;
    }
230659
public function toArray()
    {
        $results = [];
        foreach ($this->claims as $claim) {
            $results[$claim->getName()] = $claim->getValue();
        }

        return $results;
    }
572697
public function toArray()
    {
        return array(
            'AllFields'        => $this->allFields,
            'Interest'         => $this->interest,
            'LastModifiedOnly' => $this->lastModifiedOnly,
            'Offset'           => $this->offset,
            'RequestFilter'    => $this->requestFilter->toArray(),
            'ReturnFields'     => $this->returnFields,
        );
    }
369233
public function toArray()
    {
        $workersDumped = array();

        foreach ($this->workerClasses as $worker) {
            $workersDumped[] = $worker->toArray();
        }

        return $workersDumped;
    }
732574
public function toArray()
	{
		$list = parent::toArray();

		$list['order.baseid'] = $this->getBaseId();
		$list['order.type'] = $this->getType();
		$list['order.statusdelivery'] = $this->getDeliveryStatus();
		$list['order.statuspayment'] = $this->getPaymentStatus();
		$list['order.datepayment'] = $this->getDatePayment();
		$list['order.datedelivery'] = $this->getDateDelivery();
		$list['order.relatedid'] = $this->getRelatedId();

		return $list;
	}
817233
public function toArray(): array
    {
        return array_values(array_map(
            function (Result $result) {
                return array_merge(
                    $result->toArray(),
                    [$result->getScore($this->maxCommits(), $this->maxComplexity())]
                );
            },
            $this->items
        ));
    }
695183
protected function aggregateData()
    {
        $data = [
            'iso_code'            => $this->isoCode,
            'name'                => $this->name,
            'symbol'              => $this->symbol,
            'subunit'             => $this->subunit,
            'symbol_first'        => $this->symbolFirst,
            'html_entity'         => $this->htmlEntity,
            'decimal_mark'        => $this->decimalMark,
            'thousands_separator' => $this->thousandsSeparator,
            'iso_numeric'         => $this->isoNumeric,
        ];

        if (!is_null($this->alternateSymbols)) {
            $data['alternate_symbols'] = $this->alternateSymbols;
        }

        if (!is_null($this->disambiguateSymbol)) {
            $data['disambiguate_symbol'] = $this->disambiguateSymbol;
        }

        return $data;
    }
801388
public function getAsArray()
    {
        $openingHours = [
            DayOfTheWeek::MONDAY => $this->getMonday(),
            DayOfTheWeek::TUESDAY => $this->getTuesday(),
            DayOfTheWeek::WEDNESDAY => $this->getWednesday(),
            DayOfTheWeek::THURSDAY => $this->getThursday(),
            DayOfTheWeek::FRIDAY => $this->getFriday(),
            DayOfTheWeek::SATURDAY => $this->getSaturday(),
            DayOfTheWeek::SUNDAY => $this->getSunday(),
        ];
        return $openingHours;
    }
1287672
function ToArray()
    {
        $result = array();
        $item = $this->TopMost();
        while ($item)
        {
            $result[] = $item;
            $item = $this->NextOf($item);
        }
        return $result;
    }
797572
public function toArray()
    {
        $array = [];

        if (!empty($this->getBefore())) {
            $array['before'] = [];
            foreach ($this->getBefore() as $beforeAction) {
                $array['before'][] = $beforeAction->toArray();
            }
        }

        if (!empty($this->getAfter())) {
            $array['after'] = [];
            foreach ($this->getAfter() as $afterAction) {
                $array['after'][] = $afterAction->toArray();
            }
        }

        return $array;
    }
1278315
public function toArray()
    {
        $ary = [];

        foreach ($this as $key => $value) {
            $ary[$key] = $value;
        }

        return $ary;
    }
1055118
public function toArray()
    {
        $array = [];

        if (!empty($this->getHasOne())) {
            $array['hasOne'] = [];
            foreach ($this->getHasOne() as $item) {
                $array['hasOne'][] = $item->toArray();
            }
        }

        if (!empty($this->getHasMany())) {
            $array['hasMany'] = [];
            foreach ($this->getHasMany() as $item) {
                $array['hasMany'][] = $item->toArray();
            }
        }

        return $array;
    }
405538
public function toArray(): array
    {
        $groups = [];

        foreach ($this->groups as $group) {
            $key = Key::sanitize($group['name']);

            $key = sprintf('%s_%s', $this->parentKey, $key);

            $group = [
                'field' => sprintf('field_%s', Key::hash($key)),
                'operator' => $group['operator'],
                'value' => $group['value'],
            ];

            $groups[] = $group;
        }

        return $groups;
    }
982075
public function toArray()
    {
        $arr = [];
        foreach ($this as $k => $v) {
            if ($v instanceof Enumerable) {
                $arr[] = $v->toArray();
            } else {
                $arr[] = $v;
            }
        }

        return $arr;
    }
873322
public function toArray()
    {
        return [
            'order_tax_amount' => CurrencyUtils::amountToExponent($this->getOrderTaxAmount(), $this->currency),
            'items'            => array_map(
                function ($item) {
                    return ['item' => $item->toArray()];
                },
                $this->items
            )
        ];
    }
807417
public function toArray() {
        $arr = array();
        foreach ($this->cells as $key => $cell) {
            $arr[] = $cell->toArray();
        }
        return $arr;
    }