Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
namespace Aws\EndpointV2\Ruleset;
4
 
5
/**
6
 * Represents a fully resolved endpoint that a
7
 * rule returns if input parameters meet its requirements.
8
 */
9
class RulesetEndpoint
10
{
11
    /** @var string */
12
    private $url;
13
 
14
    /** @var array */
15
    private $properties;
16
 
17
    /** @var array */
18
    private $headers;
19
 
20
    public function __construct($url, $properties = null, $headers = null)
21
    {
22
        $this->url = $url;
23
        $this->properties = $properties;
24
        $this->headers = $headers;
25
    }
26
 
27
    /**
28
     * @return mixed
29
     */
30
    public function getUrl()
31
    {
32
        return $this->url;
33
    }
34
 
35
    /**
1441 ariadna 36
     * @param $property
1 efrain 37
     * @return mixed
38
     */
1441 ariadna 39
    public function getProperty($property)
40
    {
41
        if (isset($this->properties[$property])) {
42
            return $this->properties[$property];
43
        }
44
 
45
        return null;
46
    }
47
 
48
    /**
49
     * @return mixed
50
     */
1 efrain 51
    public function getProperties()
52
    {
53
        return $this->properties;
54
    }
55
 
56
    /**
57
     * @return mixed
58
     */
59
    public function getHeaders()
60
    {
61
        return $this->headers;
62
    }
63
}