2021-04-02 19:20:02 +02:00
|
|
|
<?php
|
|
|
|
|
2021-06-08 11:52:11 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-04-02 19:20:02 +02:00
|
|
|
/**
|
2021-05-19 18:35:13 +02:00
|
|
|
* This class defines the Object which is the primary base type for the Activity Streams vocabulary.
|
2021-04-02 19:20:02 +02:00
|
|
|
*
|
|
|
|
* Object is a reserved word in php, so the class is named ObjectType.
|
|
|
|
*
|
2022-02-19 17:06:11 +01:00
|
|
|
* @copyright 2021 Ad Aures
|
2021-04-02 19:20:02 +02:00
|
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
|
|
* @link https://castopod.org/
|
|
|
|
*/
|
|
|
|
|
2021-08-23 13:05:16 +02:00
|
|
|
namespace Modules\Fediverse\Core;
|
2021-04-02 19:20:02 +02:00
|
|
|
|
|
|
|
class ObjectType extends AbstractObject
|
|
|
|
{
|
|
|
|
/**
|
2021-05-14 19:59:35 +02:00
|
|
|
* @var string|string[]
|
2021-04-02 19:20:02 +02:00
|
|
|
*/
|
2021-05-19 18:35:13 +02:00
|
|
|
protected string | array $context = 'https://www.w3.org/ns/activitystreams';
|
|
|
|
|
2021-05-18 19:16:36 +02:00
|
|
|
protected string $id;
|
2021-05-19 18:35:13 +02:00
|
|
|
|
2021-05-18 19:16:36 +02:00
|
|
|
protected string $type = 'Object';
|
2021-05-19 18:35:13 +02:00
|
|
|
|
2021-05-18 19:16:36 +02:00
|
|
|
protected string $content;
|
2021-05-19 18:35:13 +02:00
|
|
|
|
2021-05-18 19:16:36 +02:00
|
|
|
protected string $published;
|
2021-04-02 19:20:02 +02:00
|
|
|
|
|
|
|
/**
|
2021-05-14 19:59:35 +02:00
|
|
|
* @var string[]
|
2021-04-02 19:20:02 +02:00
|
|
|
*/
|
2021-05-18 19:16:36 +02:00
|
|
|
protected array $to = ['https://www.w3.org/ns/activitystreams#Public'];
|
2021-04-02 19:20:02 +02:00
|
|
|
|
|
|
|
/**
|
2021-05-28 19:04:54 +02:00
|
|
|
* @var string[]|null
|
2021-04-02 19:20:02 +02:00
|
|
|
*/
|
2021-05-28 19:04:54 +02:00
|
|
|
protected ?array $cc = null;
|
2021-04-02 19:20:02 +02:00
|
|
|
}
|