[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 * Database object
* @var dbal * @var phpbb_db_driver
*/ */
private $db = null; protected $db;
/** /**
* User object * User object
* @var phpbb_user * @var phpbb_user
*/ */
private $user = null; protected $user;
/** /**
* URI for the adm_back_link when there was an error. * URI for the adm_back_link when there was an error.
*/ */
private $adm_back_link = ''; protected $adm_back_link = '';
/** /**
* Constructor * Constructor
* *
* @param dbal $db Database object * @param phpbb_db_driver $db Database object
* @param phpbb_user $user User 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->db = $db;
$this->user = $user; $this->user = $user;

View file

@ -36,35 +36,35 @@ class phpbb_groupposition_teampage implements phpbb_groupposition_interface
/** /**
* Database object * Database object
* @var dbal * @var phpbb_db_driver
*/ */
private $db = null; protected $db;
/** /**
* User object * User object
* @var phpbb_user * @var phpbb_user
*/ */
private $user = null; protected $user;
/** /**
* Cache object * Cache object
* @var phpbb_cache_driver_interface * @var phpbb_cache_driver_interface
*/ */
private $cache = null; protected $cache;
/** /**
* URI for the adm_back_link when there was an error. * URI for the adm_back_link when there was an error.
*/ */
private $adm_back_link = ''; protected $adm_back_link = '';
/** /**
* Constructor * Constructor
* *
* @param dbal $db Database object * @param phpbb_db_driver $db Database object
* @param phpbb_user $user User object * @param phpbb_user $user User object
* @param phpbb_cache_driver_interface $cache Cache 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->db = $db;
$this->user = $user; $this->user = $user;