1: <?php
2: namespace Datadepo\Api\Structures;
3:
4: /**
5: * @property-read integer $primary
6: * @property-read integer $inId
7: * @property-read string $name
8: * @property-read string $position
9: * @property-read string $phone1
10: * @property-read string $phone2
11: * @property-read string $email
12: */
13: class SupplierPersonLine extends AbstractStructure
14: {
15:
16: /** @var integer */
17: protected $inId;
18:
19: /**
20: * @param array $data
21: * @param integer $inId
22: */
23: public function __construct($data, $inId)
24: {
25: $this->data = $data;
26: $this->inId = $inId;
27: }
28:
29: /**
30: * @return string
31: */
32: public function getJson()
33: {
34: return json_encode($this->data);
35: }
36:
37: /**
38: * @return string
39: */
40: public function getPrimary()
41: {
42: return $this->getInId();
43: }
44:
45: /**
46: * Primary key for bank account
47: * @return string
48: */
49: public function getInId()
50: {
51: return $this->inId;
52: }
53:
54: /**
55: * @return string
56: */
57: public function getName()
58: {
59: return $this->data->name;
60: }
61:
62: /**
63: * @return string
64: */
65: public function getPosition()
66: {
67: return $this->data->position;
68: }
69:
70: /**
71: * @return string
72: */
73: public function getPhone1()
74: {
75: return $this->data->phone1;
76: }
77:
78: /**
79: * @return string
80: */
81: public function getPhone2()
82: {
83: return $this->data->phone2;
84: }
85:
86: /**
87: * @return string
88: */
89: public function getEmail()
90: {
91: return $this->data->email;
92: }
93:
94: }