-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice.php
46 lines (41 loc) · 808 Bytes
/
service.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
*
* Groups on Registration. An extension for the phpBB Forum Software package.
*
* @copyright (c) 2017, jbreu
* @license GNU General Public License, version 2 (GPL-2.0)
*
*/
namespace jbreu\groupsonregistration;
/**
* Groups on Registration Service info.
*/
class service
{
/** @var \phpbb\user */
protected $user;
/** @var string */
protected $table_name;
/**
* Constructor
*
* @param \phpbb\user $user User object
* @param string $table_name The name of a db table
*/
public function __construct(\phpbb\user $user, $table_name)
{
$this->user = $user;
$this->table_name = $table_name;
}
/**
* Get user demo
*
* @return \phpbb\user $user User object
*/
public function get_user()
{
var_dump($this->table_name);
return $this->user;
}
}