public static function create(Order $order)
    {
        $properties = self::getClientInstance()->call('ordercreate', $order->toArray(array('includeNumber' => false)));
        $did = new DIDNumber($order);
        $did->getOrder()->setCityId($properties['city_id']);
        unset($properties['result'], $properties['autorenew_enable'], $properties['city_prefix'], $properties['country_iso'], $properties['country_iso'], $properties['city_id']);
        $did->fromArray($properties);
        return $did;
    }
public static function create(Order $order)
    {
        $properties = self::getClientInstance()->call('ordercreate', $order->toArray(array('includeNumber' => false)));
        $did = new DIDNumber($order);
        $did->getOrder()->setCityId($properties['city_id']);
        unset($properties['result'], $properties['autorenew_enable'], $properties['city_prefix'], $properties['country_iso'], $properties['country_iso'], $properties['city_id']);
        $did->fromArray($properties);
        return $did;
    }
public static function create ( Order $ order ) { $ properties = self :: getClientInstance ( ) -> call ( 'ordercreate' , $ order -> toArray ( array ( 'includeNumber' => false ) ) ) ; $ did = new DIDNumber ( $ order ) ; $ did -> getOrder ( ) -> setCityId ( $ properties [ 'city_id' ] ) ; unset ( $ properties [ 'result' ] , $ properties [ 'autorenew_enable' ] , $ properties [ 'city_prefix' ] , $ properties [ 'country_iso' ] , $ properties [ 'country_iso' ] , $ properties [ 'city_id' ] ) ; $ did -> fromArray ( $ properties ) ; return $ did ; }
create did number for order
@link http://open.didww.com/index.php/5._Order_Create
@param Order $order
@return DIDNumber
create did number for order