forked from cdaguerre/php-trello-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathObjectInterface.php
More file actions
58 lines (50 loc) · 1.17 KB
/
ObjectInterface.php
File metadata and controls
58 lines (50 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
namespace Trello\Model;
use Trello\Exception\BadMethodCallException;
interface ObjectInterface
{
/**
* Get identifier
*
* @return string
*/
public function getId();
/**
* Save the object through API
*
* @return AbstractObject
*
* @throws BadMethodCallException If this method is not allowed by the API on the child object
* @throws PermissionDeniedException If the client does not have sufficient privileges
*/
public function save();
/**
* Remove the object through API
*
* @return AbstractObject
*
* @throws BadMethodCallException If this method is not allowed by the API on the child object
* @throws PermissionDeniedException If the client does not have sufficient privileges
*/
public function remove();
/**
* Refresh the object through API
*
* @return AbstractObject
*/
public function refresh();
/**
* Get data
*
* @return array
*/
public function getData();
/**
* Set data
*
* @param array $data
*
* @return AbstractObject
*/
public function setData(array $data);
}