summaryrefslogtreecommitdiff
path: root/vendor/chillerlan/php-settings-container/tests/TestOptionsTrait.php
blob: 261f533ac7377d3d20fbf53983d48995b6760def (plain)
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
<?php
/**
 * Trait TestOptionsTrait
 *
 * @filesource   TestOptionsTrait.php
 * @created      28.08.2018
 * @package      chillerlan\SettingsTest
 * @author       smiley <[email protected]>
 * @copyright    2018 smiley
 * @license      MIT
 */

namespace chillerlan\SettingsTest;

trait TestOptionsTrait{

	protected $test1 = 'foo';

	protected $test2;

	protected $testConstruct;

	protected $test4;

	protected $test5;

	protected $test6;

	protected function TestOptionsTrait(){
		$this->testConstruct = 'success';
	}

	protected function set_test5($value){
		$this->test5 = $value.'_test5';
	}

	protected function get_test6(){
		return $this->test6 === null
			? 'null'
			: sha1($this->test6);
	}
}