]> git.mxchange.org Git - friendica.git/blob - src/Protocol/Diaspora/Entity/DiasporaContact.php
Merge pull request #13648 from annando/picture-upload
[friendica.git] / src / Protocol / Diaspora / Entity / DiasporaContact.php
1 <?php
2 /**
3  * @copyright Copyright (C) 2010-2023, the Friendica project
4  *
5  * @license GNU AGPL version 3 or any later version
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Affero General Public License as
9  * published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU Affero General Public License for more details.
16  *
17  * You should have received a copy of the GNU Affero General Public License
18  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19  *
20  */
21
22 namespace Friendica\Protocol\Diaspora\Entity;
23
24 use Psr\Http\Message\UriInterface;
25
26 /**
27  * @property-read $uriId
28  * @property-read $url
29  * @property-read $guid
30  * @property-read $addr
31  * @property-read $alias
32  * @property-read $nick
33  * @property-read $name
34  * @property-read $givenName
35  * @property-read $familyName
36  * @property-read $photo
37  * @property-read $photoMedium
38  * @property-read $photoSmall
39  * @property-read $batch
40  * @property-read $notify
41  * @property-read $poll
42  * @property-read $subscribe
43  * @property-read $searchable
44  * @property-read $pubKey
45  * @property-read $baseurl
46  * @property-read $gsid
47  * @property-read $created
48  * @property-read $updated
49  * @property-read $interacting_count
50  * @property-read $interacted_count
51  * @property-read $post_count
52  */
53 class DiasporaContact extends \Friendica\BaseEntity
54 {
55         /** @var int */
56         protected $uriId;
57         /** @var UriInterface */
58         protected $url;
59         /** @var string */
60         protected $guid;
61         /** @var string */
62         protected $addr;
63         /** @var UriInterface */
64         protected $alias;
65         /** @var string */
66         protected $nick;
67         /** @var string */
68         protected $name;
69         /** @var string */
70         protected $givenName;
71         /** @var string */
72         protected $familyName;
73         /** @var UriInterface */
74         protected $photo;
75         /** @var UriInterface */
76         protected $photoMedium;
77         /** @var UriInterface */
78         protected $photoSmall;
79         /** @var UriInterface */
80         protected $batch;
81         /** @var UriInterface */
82         protected $notify;
83         /** @var UriInterface */
84         protected $poll;
85         /** @var string URL pattern string including a placeholder "{uri}" that mustn't be URL-encoded */
86         protected $subscribe;
87         /** @var bool */
88         protected $searchable;
89         /** @var string */
90         protected $pubKey;
91         /** @var UriInterface */
92         protected $baseurl;
93         /** @var int */
94         protected $gsid;
95         /** @var \DateTime */
96         protected $created;
97         /** @var \DateTime */
98         protected $updated;
99         /** @var int */
100         protected $interacting_count;
101         /** @var int */
102         protected $interacted_count;
103         /** @var int */
104         protected $post_count;
105
106         public function __construct(
107                 UriInterface $url, \DateTime $created, string $guid = null, string $addr = null, UriInterface $alias = null,
108                 string $nick = null, string $name = null, string $givenName = null, string $familyName = null,
109                 UriInterface $photo = null, UriInterface $photoMedium = null, UriInterface $photoSmall = null,
110                 UriInterface $batch = null, UriInterface $notify = null, UriInterface $poll = null, string $subscribe = null,
111                 bool $searchable = null, string $pubKey = null, UriInterface $baseurl = null, int $gsid = null,
112                 \DateTime $updated = null, int $interacting_count = 0, int $interacted_count = 0, int $post_count = 0, int $uriId = null
113         ) {
114                 $this->uriId             = $uriId;
115                 $this->url               = $url;
116                 $this->guid              = $guid;
117                 $this->addr              = $addr;
118                 $this->alias             = $alias;
119                 $this->nick              = $nick;
120                 $this->name              = $name;
121                 $this->givenName         = $givenName;
122                 $this->familyName        = $familyName;
123                 $this->photo             = $photo;
124                 $this->photoMedium       = $photoMedium;
125                 $this->photoSmall        = $photoSmall;
126                 $this->batch             = $batch;
127                 $this->notify            = $notify;
128                 $this->poll              = $poll;
129                 $this->subscribe         = $subscribe;
130                 $this->searchable        = $searchable;
131                 $this->pubKey            = $pubKey;
132                 $this->baseurl           = $baseurl;
133                 $this->gsid              = $gsid;
134                 $this->created           = $created;
135                 $this->updated           = $updated;
136                 $this->interacting_count = $interacting_count;
137                 $this->interacted_count  = $interacted_count;
138                 $this->post_count        = $post_count;
139         }
140 }