public function fix($mobileOrCarrier) {
    // If instance of carrier
    if ($mobileOrCarrier instanceof Carrier) {
      // Use
      $this->carrier = $mobileOrCarrier;
    }
    // If instance of mobile
    elseif ($mobileOrCarrier instanceof Mobile) {
      // Get carrier
      $this->carrier = $mobileOrCarrier->carrier;
    }
    // Else 
    else {
      // Get carrier
      $this->carrier =  Loader::mobile($mobileOrCarrier)->carrier;
    }
    // Adjust and return
    return $this->adjust();
  }
public function fix($mobileOrCarrier) {
    // If instance of carrier
    if ($mobileOrCarrier instanceof Carrier) {
      // Use
      $this->carrier = $mobileOrCarrier;
    }
    // If instance of mobile
    elseif ($mobileOrCarrier instanceof Mobile) {
      // Get carrier
      $this->carrier = $mobileOrCarrier->carrier;
    }
    // Else 
    else {
      // Get carrier
      $this->carrier =  Loader::mobile($mobileOrCarrier)->carrier;
    }
    // Adjust and return
    return $this->adjust();
  }
public function fix ( $ mobileOrCarrier ) { // If instance of carrier if ( $ mobileOrCarrier instanceof Carrier ) { // Use $ this -> carrier = $ mobileOrCarrier ; } // If instance of mobile elseif ( $ mobileOrCarrier instanceof Mobile ) { // Get carrier $ this -> carrier = $ mobileOrCarrier -> carrier ; } // Else  else { // Get carrier $ this -> carrier = Loader :: mobile ( $ mobileOrCarrier ) -> carrier ; } // Adjust and return return $ this -> adjust ( ) ; }
Fix cost by mobile or carrier
@param int|string|Mobile|Carrier $mobileOrCarrier Can be mobile number or instance of Mobile or Carrier
Fix cost by mobile or carrier