-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRestService.php
More file actions
47 lines (42 loc) · 900 Bytes
/
RestService.php
File metadata and controls
47 lines (42 loc) · 900 Bytes
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
47
<?php
/**
* Definition of RestService abstract base class
*
* @copyright 2013-today Justso GmbH
* @author j.schirrmacher@justso.de
* @package justso\service
*/
namespace justso\justapi;
/**
* This is a base class for all REST services
*
* @package justso\service
*/
abstract class RestService implements ServiceInterface
{
/**
* @var SystemEnvironmentInterface
*/
protected $environment;
/**
* Name of service
* @var string
*/
protected $name = null;
/**
* @param SystemEnvironmentInterface $environment
*/
public function __construct(SystemEnvironmentInterface $environment)
{
$this->environment = $environment;
}
/**
* Sets the name of this service.
*
* @param string $serviceName
*/
public function setName($serviceName)
{
$this->name = $serviceName;
}
}