for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Represents an actor
*
* @author Sam Stenvall <[email protected]>
* @copyright Copyright © Sam Stenvall 2013-
* @license https://www.gnu.org/licenses/gpl.html The GNU General Public License v3.0
*/
class Actor implements ITypeaheadData
{
const MEDIA_TYPE_MOVIE = 'movie';
const MEDIA_TYPE_TVSHOW = 'tvshow';
* @var string
public $name;
public $role;
public $thumbnail;
public function getName()
return $this->name;
}
* Converts the object to a string. This is necessary in order to filter
* duplicate actors with functions such as array_unique()
* @return string the string representation of the actor
public function __toString()