for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
/**
* This file is part of the Tmdb package.
*
* (c) Vincent Faliès <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* @author Vincent Faliès <[email protected]>
* @copyright Copyright (c) 2017-2020
*/
namespace VfacTmdb\Results;
use VfacTmdb\Abstracts\Results;
use VfacTmdb\Interfaces\TmdbInterface;
* Class to manipulate a name result
* @package Tmdb
* @author Steve Richter <[email protected]>
class AlternativeName extends Results
{
* Id
* @var int
protected $id;
* Name
* @var string
protected $name;
* Type
protected $type;
* Constructor
* @param TmdbInterface $tmdb
* @param int $id
* @param \stdClass $result
public function __construct(TmdbInterface $tmdb, int $id, \stdClass $result)
$result->id = $id;
parent::__construct($tmdb, $result);
$this->id = (int) $id;
$this->name = $result->name;
$this->type = $result->type;
}
* @return int
public function getId() : int
return $this->id;
* @return string
public function getName() : string
return $this->name;
public function getType() : string
return $this->type;