2023-12-02 16:03:12 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* PostalAddress is a custom ActivityPub object firstly used by Mobilizon
|
|
|
|
* derived from https://schema.org/PostalAddress.
|
|
|
|
*
|
|
|
|
* @package activity-event-transformers
|
2023-12-04 19:27:57 +01:00
|
|
|
* @license AGPL-3.0-or-later
|
2023-12-02 16:03:12 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-event
|
|
|
|
*/
|
|
|
|
class Postal_Address extends \Activitypub\Activity\Base_Object {
|
|
|
|
/**
|
|
|
|
* Place is an implementation of one of the
|
|
|
|
* Activity Streams
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $type = 'PostalAddress';
|
|
|
|
|
2023-12-12 17:27:43 +01:00
|
|
|
/**
|
|
|
|
* The country. For example, USA. You can also provide the two-letter ISO 3166-1 alpha-2 country code.
|
|
|
|
*
|
|
|
|
* @see http://en.wikipedia.org/wiki/ISO_3166-1
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $address_country;
|
2023-12-02 16:03:12 +01:00
|
|
|
|
2023-12-12 17:27:43 +01:00
|
|
|
/**
|
|
|
|
* The locality in which the street address is, and which is in the region. For example, Mountain View.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $address_locality;
|
2023-12-02 16:03:12 +01:00
|
|
|
|
2023-12-12 17:27:43 +01:00
|
|
|
/**
|
|
|
|
* The region in which the locality is, and which is in the country.
|
|
|
|
* For example, California or another appropriate first-level Administrative division.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $address_region;
|
2023-12-02 16:03:12 +01:00
|
|
|
|
2023-12-12 17:27:43 +01:00
|
|
|
/**
|
|
|
|
* The postal code. For example, 94043.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $postal_code;
|
2023-12-02 16:03:12 +01:00
|
|
|
|
2023-12-12 17:27:43 +01:00
|
|
|
/**
|
|
|
|
* The street address. For example, 1600 Amphitheatre Pkwy.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $street_address;
|
2023-12-02 16:03:12 +01:00
|
|
|
}
|