Commit | Line | Data |
---|---|---|
19b53e5b C |
1 | <?php |
2 | ||
3 | namespace Civi\Api4; | |
4 | ||
5 | /** | |
6 | * Address Entity. | |
7 | * | |
8 | * This entity holds the address informatiom of a contact. Each contact may hold | |
9 | * one or more addresses but must have different location types respectively. | |
10 | * | |
11 | * Creating a new address requires at minimum a contact's ID and location type ID | |
12 | * and other attributes (although optional) like street address, city, country etc. | |
13 | * | |
14 | * @package Civi\Api4 | |
15 | */ | |
16 | class Address extends Generic\DAOEntity { | |
17 | ||
18 | /** | |
19 | * @return \Civi\Api4\Action\Address\Create | |
20 | */ | |
21 | public static function create() { | |
22 | return new \Civi\Api4\Action\Address\Create(__CLASS__, __FUNCTION__); | |
23 | } | |
24 | ||
25 | /** | |
26 | * @return \Civi\Api4\Action\Address\Save | |
27 | */ | |
28 | public static function save() { | |
29 | return new \Civi\Api4\Action\Address\Save(__CLASS__, __FUNCTION__); | |
30 | } | |
31 | ||
32 | /** | |
33 | * @return \Civi\Api4\Action\Address\Update | |
34 | */ | |
35 | public static function update() { | |
36 | return new \Civi\Api4\Action\Address\Update(__CLASS__, __FUNCTION__); | |
37 | } | |
38 | ||
39 | } |