Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
profile.php
1<?php
2
4
5class Profile implements \JsonSerializable
6{
7 private $name;
8
9 private $id;
10
11 private $link;
12
13 private $picture;
14
15 private $type;
16
17 public function setName(?string $name)
18 {
19 $this->name = $name;
20 return $this;
21 }
22
23 public function setId(?string $id)
24 {
25 $this->id = $id;
26 return $this;
27 }
28
29 public function setLink(?string $link)
30 {
31 $this->link = $link;
32 return $this;
33 }
34
35 public function setPicture(?string $picture)
36 {
37 $this->picture = $picture;
38 return $this;
39 }
40
41 public function getName()
42 {
43 return $this->name;
44 }
45
46 public function getId()
47 {
48 return $this->id;
49 }
50
51 public function getLink()
52 {
53 return $this->link;
54 }
55
56 public function getPicture()
57 {
58 return $this->picture;
59 }
60
61 public function getType()
62 {
63 return $this->type;
64 }
65
66
67 public function toArray() : array
68 {
69 return [];
70 }
71
75 public function jsonSerialize()
76 {
77 return [
78 'id' => $this->id,
79 'name' => $this->name,
80 'link' => $this->link,
81 'picture' => $this->picture,
82 ];
83 }
84}