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
 * Encapsulates file roles
22
 *
23
 * @package phing.tasks.ext
24
 */
25
class PearPkgRole
26
{
27
    /**
28
     * @var string
29
     */
30
    private $extension;
31

32
    /**
33
     * @var string
34
     */
35
    private $role;
36

37
    /**
38
     * Sets the file extension
39
     *
40
     * @param string $extension
41
     */
42 0
    public function setExtension($extension)
43
    {
44 0
        $this->extension = $extension;
45
    }
46

47
    /**
48
     * Retrieves the file extension
49
     *
50
     * @return string
51
     */
52 0
    public function getExtension()
53
    {
54 0
        return $this->extension;
55
    }
56

57
    /**
58
     * Sets the role
59
     *
60
     * @param string $role
61
     */
62 0
    public function setRole($role)
63
    {
64 0
        $this->role = $role;
65
    }
66

67
    /**
68
     * Retrieves the role
69
     *
70
     * @return string
71
     */
72 0
    public function getRole()
73
    {
74 0
        return $this->role;
75
    }
76
}

Read our documentation on viewing source code .

Loading