Completed
Push — master ( bbb282...43d0b8 )
by Daniel
25s
created

LeftAndMain_HTTPResponse::isFinished()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 2
eloc 2
nc 2
nop 0
dl 0
loc 4
rs 10
c 1
b 1
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: dmooyman
5
 * Date: 12/08/16
6
 * Time: 12:13 PM
7
 */
8
namespace SilverStripe\Admin;
9
10
use SS_HTTPResponse;
11
12
/**
13
 * Allow overriding finished state for faux redirects.
14
 *
15
 * @package framework
16
 * @subpackage admin
17
 */
18
class LeftAndMain_HTTPResponse extends SS_HTTPResponse
19
{
20
21
	protected $isFinished = false;
22
23
	public function isFinished()
24
	{
25
		return (parent::isFinished() || $this->isFinished);
26
	}
27
28
	public function setIsFinished($bool)
29
	{
30
		$this->isFinished = $bool;
31
	}
32
33
}
34