André Menrath
6c6d9076a8
Some checks are pending
PHP_CodeSniffer / phpcs (push) Waiting to run
Unit Testing / phpunit (5.6, 6.2) (push) Waiting to run
Unit Testing / phpunit (7.0) (push) Waiting to run
Unit Testing / phpunit (7.2) (push) Waiting to run
Unit Testing / phpunit (7.3) (push) Waiting to run
Unit Testing / phpunit (7.4) (push) Waiting to run
Unit Testing / phpunit (8.0) (push) Waiting to run
Unit Testing / phpunit (8.1) (push) Waiting to run
Unit Testing / phpunit (8.2) (push) Waiting to run
Unit Testing / phpunit (latest) (push) Waiting to run
94 lines
2.2 KiB
PHP
94 lines
2.2 KiB
PHP
<?php
|
|
/**
|
|
* Event is an implementation of one of the
|
|
* Activity Streams Event object type
|
|
*
|
|
* @package activity-event-transformers
|
|
* @license AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace Activitypub\Activity;
|
|
|
|
use Activitypub\Activity\Base_Object;
|
|
|
|
/**
|
|
* Event is an implementation of one of the
|
|
* Activity Streams Event object type
|
|
*
|
|
* The Object is the primary base type for the Activity Streams
|
|
* vocabulary.
|
|
*
|
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-event
|
|
*/
|
|
class Place extends Base_Object {
|
|
/**
|
|
* Place is an implementation of one of the
|
|
* Activity Streams
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $type = 'Place';
|
|
|
|
/**
|
|
* Indicates the accuracy of position coordinates on a Place objects.
|
|
* Expressed in properties of percentage. e.g. "94.0" means "94.0% accurate".
|
|
*
|
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-accuracy
|
|
* @var float xsd:float [>= 0.0f, <= 100.0f]
|
|
*/
|
|
protected $accuracy;
|
|
|
|
/**
|
|
* Indicates the altitude of a place. The measurement units is indicated using the units property.
|
|
* If units is not specified, the default is assumed to be "m" indicating meters.
|
|
*
|
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-altitude
|
|
* @var float xsd:float
|
|
*/
|
|
protected $altitude;
|
|
|
|
/**
|
|
* The latitude of a place.
|
|
*
|
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-latitude
|
|
* @var float xsd:float
|
|
*/
|
|
protected $latitude;
|
|
|
|
/**
|
|
* The longitude of a place.
|
|
*
|
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-longitude
|
|
* @var float xsd:float
|
|
*/
|
|
protected $longitude;
|
|
|
|
/**
|
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-radius
|
|
* @var float
|
|
*/
|
|
protected $radius;
|
|
|
|
/**
|
|
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-units
|
|
* @var string
|
|
*/
|
|
protected $units;
|
|
|
|
/**
|
|
* Extension invented by PeerTube whether comments/replies are <enabled>
|
|
* Mobilizon also implemented this as a fallback to their own
|
|
* repliesModerationOption.
|
|
*
|
|
* @see https://docs.joinpeertube.org/api/activitypub#video
|
|
* @see https://docs.joinmobilizon.org/contribute/activity_pub/
|
|
*
|
|
* @var bool
|
|
*/
|
|
protected $comments_enabled;
|
|
|
|
/**
|
|
* @var Postal_Address|string
|
|
*/
|
|
protected $address;
|
|
}
|