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

NullHTTPRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 7
rs 10
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
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