Change private properties to protected

This commit is contained in:
Frederic Guillot
2016-01-13 21:02:32 -05:00
parent 2d85e0fab7
commit f9c676cf81
10 changed files with 36 additions and 34 deletions

View File

@@ -17,10 +17,10 @@ class User
/**
* Query
*
* @access private
* @access protected
* @var Query
*/
private $query;
protected $query;
/**
* Constructor
@@ -44,7 +44,8 @@ class User
*/
public static function getUser(Client $client, $username)
{
$self = new self(new Query($client));
$className = get_called_class();
$self = new $className(new Query($client));
return $self->find($self->getLdapUserPattern($username));
}