1
<?php
2
/**
3
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
5
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
6
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
7
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
8
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
9
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
10
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
11
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
12
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
13
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14
 *
15
 * This software consists of voluntary contributions made by many individuals
16
 * and is licensed under the LGPL. For more information please see
17
 * <http://phing.info>.
18
 */
19

20
/**
21
 * A property element nested in SonarTask.
22
 *
23
 * @author  Bernhard Mendl <mail@bernhard-mendl.de>
24
 * @package phing.tasks.ext.sonar
25
 */
26
class SonarProperty
27
{
28

29
    /**
30
     *
31
     * @var string
32
     */
33
    private $name;
34

35
    /**
36
     *
37
     * @var string
38
     */
39
    private $value;
40

41
    /**
42
     *
43
     * @return string
44
     */
45 1
    public function getName()
46
    {
47 1
        return $this->name;
48
    }
49

50
    /**
51
     *
52
     * @param string $name
53
     * @return void
54
     */
55 1
    public function setName($name)
56
    {
57 1
        $this->name = (string) $name;
58
    }
59

60
    /**
61
     *
62
     * @return string
63
     */
64 1
    public function getValue()
65
    {
66 1
        return $this->value;
67
    }
68

69
    /**
70
     *
71
     * @param string $value
72
     * @return void
73
     */
74 1
    public function setValue($value)
75
    {
76 1
        $this->value = (string) $value;
77
    }
78
}

Read our documentation on viewing source code .

Loading