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