Imdb\Person::__construct PHP Method

__construct() public method

public __construct ( $id, Config $config = null, Psr\Log\LoggerInterface $logger = null, CacheInterface $cache = null )
$config Config OPTIONAL override default config
$logger Psr\Log\LoggerInterface OPTIONAL override default logger
$cache CacheInterface OPTIONAL override default cache
    public function __construct($id, Config $config = null, LoggerInterface $logger = null, CacheInterface $cache = null)
    {
        parent::__construct($config, $logger, $cache);
        $this->revision = preg_replace('|^.*?(\\d+).*$|', '$1', '$Revision$');
        $this->setid($id);
    }