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
*/
namespace VfacTmdb\Abstracts;
use VfacTmdb\Interfaces\TmdbInterface;
use VfacTmdb\Traits\GeneratorTrait;
* abstract account class
* @package Tmdb
abstract class Account
{
use GeneratorTrait;
* Tmdb object
* @var TmdbInterface
protected $tmdb = null;
* Logger
* @var \Psr\Log\LoggerInterface
protected $logger = null;
* Session_id string
* @var string
protected $auth = null;
* Account id
* @var int
protected $account_id;
* Configuration array
* @var \stdClass
protected $conf = null;
* Options
* @var array
protected $options = [];
* Constructor
* @param TmdbInterface $tmdb
* @param string $session_id
* @param int $account_id
* @param array $options
public function __construct(TmdbInterface $tmdb, string $session_id, int $account_id, array $options = array())
$this->tmdb = $tmdb;
$options['session_id'] = $session_id;
$this->logger = $tmdb->getLogger();
$this->options = $this->tmdb->checkOptions($options);
$this->account_id = $account_id;
// Configuration
$this->conf = $tmdb->getConfiguration();
}