src/Didww/API2/Order.php
public function toArray($options = array())
    {

        $includeNumber = true;
        if (isset($options['includeNumber'])) {
            $includeNumber = (bool)$options['includeNumber'];
            unset($options['includeNumber']);
        }

        return array_merge(parent::toArray($options), $includeNumber ? $this->_ensureNumber()->toArray() : array());
    }
public function toArray($options = array())
    {

        $includeNumber = true;
        if (isset($options['includeNumber'])) {
            $includeNumber = (bool)$options['includeNumber'];
            unset($options['includeNumber']);
        }

        return array_merge(parent::toArray($options), $includeNumber ? $this->_ensureNumber()->toArray() : array());
    }
get object state as array
@see parent::toArray()
@param array $options
@return array