1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00

[ticket/10411] Fix typehinting and change private to protected

PHPBB3-10411
This commit is contained in:
Joas Schilling 2013-02-25 20:29:04 +01:00
parent 9ea48dbd45
commit b0dc5925b9
2 changed files with 14 additions and 14 deletions

View File

@ -32,28 +32,28 @@ class phpbb_groupposition_legend implements phpbb_groupposition_interface
/**
* Database object
* @var dbal
* @var phpbb_db_driver
*/
private $db = null;
protected $db;
/**
* User object
* @var phpbb_user
*/
private $user = null;
protected $user;
/**
* URI for the adm_back_link when there was an error.
*/
private $adm_back_link = '';
protected $adm_back_link = '';
/**
* Constructor
*
* @param dbal $db Database object
* @param phpbb_user $user User object
* @param phpbb_db_driver $db Database object
* @param phpbb_user $user User object
*/
public function __construct(dbal $db, phpbb_user $user)
public function __construct(phpbb_db_driver $db, phpbb_user $user)
{
$this->db = $db;
$this->user = $user;

View File

@ -36,35 +36,35 @@ class phpbb_groupposition_teampage implements phpbb_groupposition_interface
/**
* Database object
* @var dbal
* @var phpbb_db_driver
*/
private $db = null;
protected $db;
/**
* User object
* @var phpbb_user
*/
private $user = null;
protected $user;
/**
* Cache object
* @var phpbb_cache_driver_interface
*/
private $cache = null;
protected $cache;
/**
* URI for the adm_back_link when there was an error.
*/
private $adm_back_link = '';
protected $adm_back_link = '';
/**
* Constructor
*
* @param dbal $db Database object
* @param phpbb_db_driver $db Database object
* @param phpbb_user $user User object
* @param phpbb_cache_driver_interface $cache Cache object
*/
public function __construct(dbal $db, phpbb_user $user, phpbb_cache_driver_interface $cache)
public function __construct(phpbb_db_driver $db, phpbb_user $user, phpbb_cache_driver_interface $cache)
{
$this->db = $db;
$this->user = $user;