public function getDate($orderIndex = 0)
    {
        $orderStatuses = $this->getOrderStatuses();
        return array_key_exists('date', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['date'] : null;
    }
public function getDate($orderIndex = 0)
    {
        $orderStatuses = $this->getOrderStatuses();
        return array_key_exists('date', $orderStatuses[$orderIndex]) ? $orderStatuses[$orderIndex]['date'] : null;
    }
public function getDate ( $ orderIndex = 0 ) { $ orderStatuses = $ this -> getOrderStatuses ( ) ; return array_key_exists ( 'date' , $ orderStatuses [ $ orderIndex ] ) ? $ orderStatuses [ $ orderIndex ] [ 'date' ] : null ; }
Date of order registration.

@param int $orderIndex
@return mixed|null
Date of order registration .