From a480e98e7a43e239e211cec3cccdf052c11dec9b Mon Sep 17 00:00:00 2001 From: Michael Roterman Date: Sun, 2 Mar 2014 22:39:23 +0100 Subject: [PATCH] Removing deprecated Tv\Network class, TMDB moved this up to a top resident. --- lib/Tmdb/Model/Tv/Network.php | 82 ------------------------ test/Tmdb/Tests/Model/Tv/NetworkTest.php | 38 ----------- 2 files changed, 120 deletions(-) delete mode 100644 lib/Tmdb/Model/Tv/Network.php delete mode 100644 test/Tmdb/Tests/Model/Tv/NetworkTest.php diff --git a/lib/Tmdb/Model/Tv/Network.php b/lib/Tmdb/Model/Tv/Network.php deleted file mode 100644 index 366f9003..00000000 --- a/lib/Tmdb/Model/Tv/Network.php +++ /dev/null @@ -1,82 +0,0 @@ - - * @copyright (c) 2013, Michael Roterman - * @version 0.0.1 - */ -namespace Tmdb\Model\Tv; - -use Tmdb\Model\AbstractModel; - -/** - * Class Network - * @package Tmdb\Model\Tv - */ -class Network extends AbstractModel -{ - /** - * @var integer - */ - private $id; - - /** - * @var string - */ - private $name; - - /** - * Properties that are available in the API - * - * These properties are hydrated by the ObjectHydrator, all the other properties are handled by the factory. - * - * @var array - */ - public static $properties = array( - 'id', - 'name', - ); - - /** - * @param int $id - * @return $this - */ - public function setId($id) - { - $this->id = (int) $id; - - return $this; - } - - /** - * @return int - */ - public function getId() - { - return $this->id; - } - - /** - * @param string $name - * @return $this - */ - public function setName($name) - { - $this->name = $name; - - return $this; - } - - /** - * @return string - */ - public function getName() - { - return $this->name; - } -} diff --git a/test/Tmdb/Tests/Model/Tv/NetworkTest.php b/test/Tmdb/Tests/Model/Tv/NetworkTest.php deleted file mode 100644 index 0a7c3c1f..00000000 --- a/test/Tmdb/Tests/Model/Tv/NetworkTest.php +++ /dev/null @@ -1,38 +0,0 @@ - - * @copyright (c) 2013, Michael Roterman - * @version 0.0.1 - */ -namespace Tmdb\Tests\Model\Tv; - -use Tmdb\Common\ObjectHydrator; -use Tmdb\Model\Tv\Network; -use Tmdb\Tests\Model\TestCase; - -class NetworkTest extends TestCase -{ - /** - * @test - */ - public function shouldBeFunctional() - { - $data = array( - 'id' => 1, - 'name' => 'name', - ); - - $hydrator = new ObjectHydrator(); - - $object = $hydrator->hydrate(new Network(), $data); - - $this->assertEquals(1, $object->getId()); - $this->assertEquals('name', $object->getName()); - } -}