6dace2bed68fefecc7216163c74d4a101b32c8b1
[yaffs-website] / vendor / consolidation / config / tests / src / ApplyConfigTestTarget.php
1 <?php
2
3 namespace Consolidation\TestUtils;
4
5 class ApplyConfigTestTarget
6 {
7     protected $dir;
8     protected $value;
9
10     /**
11      * A proper setter for the 'dir' property
12      */
13     public function dir($dir)
14     {
15         $this->dir = $dir;
16         return $this;
17     }
18
19     /**
20      * A getter for the 'dir' property that we will use to
21      * determine if the setter was called.
22      */
23     public function getDir()
24     {
25         return $this->dir;
26     }
27
28     /**
29      * A bad setter that does not return $this.
30      */
31     public function bad($value)
32     {
33         $this->value = $value;
34     }
35
36     /**
37      * A getter for the bad setter.
38      */
39     public function getBad()
40     {
41         return $this->value;
42     }
43 }