diff --git a/Trello/Model/Action.php b/Trello/Model/Action.php index 601fede..6e80109 100644 --- a/Trello/Model/Action.php +++ b/Trello/Model/Action.php @@ -2,8 +2,8 @@ namespace Trello\Model; -class Action extends Object { +class Action extends Element { protected $_model = 'actions'; -} \ No newline at end of file +} diff --git a/Trello/Model/Board.php b/Trello/Model/Board.php index 753aae3..8b146c6 100644 --- a/Trello/Model/Board.php +++ b/Trello/Model/Board.php @@ -2,7 +2,7 @@ namespace Trello\Model; -class Board extends Object { +class Board extends Element { protected $_model = 'boards'; @@ -77,4 +77,4 @@ public function copy($new_name = null, array $copy_fields = array()){ } -} \ No newline at end of file +} diff --git a/Trello/Model/Card.php b/Trello/Model/Card.php index ee74da9..ecf6600 100644 --- a/Trello/Model/Card.php +++ b/Trello/Model/Card.php @@ -2,7 +2,7 @@ namespace Trello\Model; -class Card extends Object { +class Card extends Element { protected $_model = 'cards'; @@ -35,7 +35,7 @@ class Card extends Object { keepFromSource (optional) Default: all Valid Values: Properties of the card to copy over from the source. - * @see \Trello\Model\Object::save() + * @see \Trello\Model\Element::save() */ public function save(){ @@ -94,4 +94,4 @@ public function copy($new_name = null, $new_list_id = null, array $copy_fields = } -} \ No newline at end of file +} diff --git a/Trello/Model/Object.php b/Trello/Model/Element.php similarity index 96% rename from Trello/Model/Object.php rename to Trello/Model/Element.php index 9a423e9..cff3763 100644 --- a/Trello/Model/Object.php +++ b/Trello/Model/Element.php @@ -2,7 +2,7 @@ namespace Trello\Model; -abstract class Object implements \ArrayAccess, \Countable, \Iterator{ +abstract class Element implements \ArrayAccess, \Countable, \Iterator{ protected $_client; protected $_model; @@ -20,7 +20,7 @@ public function __construct(\Trello\Client $client, array $data = array()){ /** * Save an object * - * @return \Trello\Model\Object + * @return \Trello\Model\Element */ public function save(){ @@ -54,7 +54,7 @@ public function update(){ * Get an item by id ($this->id) * * @throws \InvalidArgumentException - * @return \Trello\Model\Object + * @return \Trello\Model\Element */ public function get(){ @@ -207,4 +207,4 @@ public function valid(){ } -} \ No newline at end of file +} diff --git a/Trello/Model/Lane.php b/Trello/Model/Lane.php index e3b28c1..47d9ddb 100644 --- a/Trello/Model/Lane.php +++ b/Trello/Model/Lane.php @@ -2,7 +2,7 @@ namespace Trello\Model; -class Lane extends Object { +class Lane extends Element { protected $_model = 'lists'; diff --git a/Trello/Model/Member.php b/Trello/Model/Member.php index 2112a81..b77750e 100644 --- a/Trello/Model/Member.php +++ b/Trello/Model/Member.php @@ -2,7 +2,7 @@ namespace Trello\Model; -class Member extends Object { +class Member extends Element { protected $_model = 'members'; @@ -44,4 +44,4 @@ public function getCards(array $params = array()) return $tmp; } -} \ No newline at end of file +} diff --git a/Trello/Model/Notification.php b/Trello/Model/Notification.php index f9895cc..0f2b7ea 100644 --- a/Trello/Model/Notification.php +++ b/Trello/Model/Notification.php @@ -2,8 +2,8 @@ namespace Trello\Model; -class Notification extends Object { +class Notification extends Element { protected $_model = 'notifications'; -} \ No newline at end of file +} diff --git a/Trello/Model/Organization.php b/Trello/Model/Organization.php index 94b552b..9da600e 100644 --- a/Trello/Model/Organization.php +++ b/Trello/Model/Organization.php @@ -2,7 +2,7 @@ namespace Trello\Model; -class Organization extends Object { +class Organization extends Element { protected $_model = 'organizations'; @@ -19,4 +19,4 @@ public function getBoards(array $params = array()){ } -} \ No newline at end of file +}