/** * Counts all associated FedexShipments * @return int */ public function CountFedexShipments() { if (is_null($this->intShipmentId)) { return 0; } return FedexShipment::CountByShipmentId($this->intShipmentId); }