public function getUser($username)
    {
        $resellers = $this->getUsers();
        return isset($resellers[$username]) ? $resellers[$username] : null;
    }
public function getUser($username)
    {
        $resellers = $this->getUsers();
        return isset($resellers[$username]) ? $resellers[$username] : null;
    }
public function getUser ( $ username ) { $ resellers = $ this -> getUsers ( ) ; return isset ( $ resellers [ $ username ] ) ? $ resellers [ $ username ] : null ; }
Returns a single user by name.

@param string $username
@return User|null
Returns a single user by name .