registry)) { return $this->registry[$customerId]; } return false; } /** * Store a customer code in the registry * * @param string $customerId * @param string $customerCode * @return CustomerCodeRegistry */ public function set($customerId, $customerCode) { $this->registry[$customerId] = $customerCode; return $this; } /** * Delete a customer code from the registry * * @param string $customerId * @return CustomerCodeRegistry */ public function delete($customerId) { unset($this->registry[$customerId]); return $this; } }