1 <?php
2 /* --------------------------------------------------------------
3 CustomerCountryReaderInterface.inc.php 2015-02-18 gm
4 Gambio GmbH
5 http://www.gambio.de
6 Copyright (c) 2015 Gambio GmbH
7 Released under the GNU General Public License (Version 2)
8 [http://www.gnu.org/licenses/gpl-2.0.html]
9 --------------------------------------------------------------
10 */
11
12 /**
13 * Interface CustomerCountryReaderInterface
14 *
15 * @category System
16 * @package Customer
17 * @subpackage Interfaces
18 */
19 interface CustomerCountryReaderInterface
20 {
21 /**
22 * Method to find a country with a given ID if it exists else it will return null
23 *
24 * @param IdType $countryId
25 *
26 * @throws InvalidArgumentException if $p_countryId is not a valid ID
27 * @throws Exception if country not found
28 * @return CustomerCountry
29 */
30 public function findById(IdType $countryId);
31
32
33
34 /**
35 * Method to find a country with a given name if it exists else it will return null
36 *
37 * @param $countryName
38 *
39 * @return CustomerCountry|null
40 */
41 public function findByName(CustomerCountryNameInterface $countryName);
42 }