Completed
Push — master ( 3c24ea...404feb )
by Sam
02:45
created

AuthenticationResponse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Jalle19\StatusManager\Message\Response;
4
5
use Jalle19\StatusManager\Message\AbstractMessage;
6
7
/**
8
 * Class AuthenticationResponse
9
 * @package   Jalle19\StatusManager\Message\Response
10
 * @copyright Copyright &copy; Sam Stenvall 2016-
11
 * @license   https://www.gnu.org/licenses/gpl.html The GNU General Public License v2.0
12
 */
13
class AuthenticationResponse extends AbstractMessage
14
{
15
16
	const STATUS_SUCCESS = 'success';
17
	const STATUS_FAILURE = 'failure';
18
19
20
	/**
21
	 * AuthenticationResponse constructor.
22
	 *
23
	 * @param string $status
24
	 */
25
	public function __construct($status)
26
	{
27
		parent::__construct(AbstractMessage::TYPE_AUTHENTICATION_RESPONSE, $status);
28
	}
29
30
}
31