Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Trello/Model/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Trello\Model;

class Action extends Object {
class Action extends Element {

protected $_model = 'actions';

}
}
4 changes: 2 additions & 2 deletions Trello/Model/Board.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Trello\Model;

class Board extends Object {
class Board extends Element {

protected $_model = 'boards';

Expand Down Expand Up @@ -77,4 +77,4 @@ public function copy($new_name = null, array $copy_fields = array()){

}

}
}
6 changes: 3 additions & 3 deletions Trello/Model/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Trello\Model;

class Card extends Object {
class Card extends Element {

protected $_model = 'cards';

Expand Down Expand Up @@ -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(){

Expand Down Expand Up @@ -94,4 +94,4 @@ public function copy($new_name = null, $new_list_id = null, array $copy_fields =

}

}
}
8 changes: 4 additions & 4 deletions Trello/Model/Object.php → Trello/Model/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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(){

Expand Down Expand Up @@ -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(){

Expand Down Expand Up @@ -207,4 +207,4 @@ public function valid(){

}

}
}
2 changes: 1 addition & 1 deletion Trello/Model/Lane.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Trello\Model;

class Lane extends Object {
class Lane extends Element {

protected $_model = 'lists';

Expand Down
4 changes: 2 additions & 2 deletions Trello/Model/Member.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Trello\Model;

class Member extends Object {
class Member extends Element {

protected $_model = 'members';

Expand Down Expand Up @@ -44,4 +44,4 @@ public function getCards(array $params = array())
return $tmp;
}

}
}
4 changes: 2 additions & 2 deletions Trello/Model/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Trello\Model;

class Notification extends Object {
class Notification extends Element {

protected $_model = 'notifications';

}
}
4 changes: 2 additions & 2 deletions Trello/Model/Organization.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Trello\Model;

class Organization extends Object {
class Organization extends Element {

protected $_model = 'organizations';

Expand All @@ -19,4 +19,4 @@ public function getBoards(array $params = array()){

}

}
}