1 | <?php |
||
8 | class StitchDataSender |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $accessToken = null; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $clientID = null; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $tableName = null; |
||
24 | |||
25 | /** |
||
26 | * @var StitchApi |
||
27 | */ |
||
28 | private $client = null; |
||
29 | |||
30 | public function __construct() |
||
40 | |||
41 | /** |
||
42 | * Set the client ID of your StitchData account. |
||
43 | * @return $this, for use with fluent syntax |
||
|
|||
44 | */ |
||
45 | public function setClientID($clientID) |
||
50 | |||
51 | /** |
||
52 | * Set the access token for the StitchData Import API |
||
53 | * @return $this, for use with fluent syntax |
||
54 | */ |
||
55 | public function setAccessToken($accessToken) |
||
60 | |||
61 | /** |
||
62 | * Set the table name to write packages to |
||
63 | * @return $this, for use with fluent syntax |
||
64 | */ |
||
65 | public function setTableName($tableName) |
||
70 | |||
71 | /** |
||
72 | * Get the client ID of your StitchData account. |
||
73 | * @return string |
||
74 | */ |
||
75 | public function getClientID() |
||
79 | |||
80 | /** |
||
81 | * Get the access token for the StitchData Import API |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getAccessToken() |
||
88 | |||
89 | /** |
||
90 | * Get the table name to write packages to |
||
91 | * @return string |
||
92 | */ |
||
93 | public function getTableName() |
||
97 | |||
98 | /** |
||
99 | * Set the StitchApi client instance |
||
100 | * |
||
101 | * @param StitchApi $client |
||
102 | * @return $this |
||
103 | */ |
||
104 | public function setClient(StitchApi $client) |
||
109 | |||
110 | /** |
||
111 | * Get (and/or create and set) the StitchApi client instance, allowing for lazy loading in case API arguments |
||
112 | * want to be changed after construction. |
||
113 | * |
||
114 | * @return StitchApi |
||
115 | */ |
||
116 | public function getClient() |
||
124 | |||
125 | /** |
||
126 | * Send the given package to the StitchData API |
||
127 | */ |
||
128 | public function sendAddon(Addon $package) |
||
143 | |||
144 | public function addonToJson(Addon $package) |
||
211 | } |
||
212 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.