Completed
Push — namespace-model ( 32fe71...476d0e )
by Sam
16:05
created

NullHTTPRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace SilverStripe\Control;
4
5
use SilverStripe\Control\HTTPRequest;
6
7
8
9
/**
10
 * Implements the "Null Object" pattern for a missing http request.
11
 * Set on controllers on construction time, typically overwritten
12
 * by {@link Controller->handleRequest()} and {@link Controller->handleAction()} later on.
13
 *
14
 * @package framework
15
 * @subpackage control
16
 */
17
class NullHTTPRequest extends HTTPRequest {
18
19
	public function __construct() {
20
		parent::__construct(null, null);
21
	}
22
23
}
24