/** * Counts all associated AssetTransactionsAsDestination * @return int */ public function CountAssetTransactionsAsDestination() { if (is_null($this->intLocationId)) { return 0; } return AssetTransaction::CountByDestinationLocationId($this->intLocationId); }