private function _determineCustomerId($customerOrId) { $customerId = $customerOrId instanceof Customer ? $customerOrId->id : $customerOrId; $this->_validateCustomerId($customerId); return $customerId; }