Passed
Pull Request — master (#269)
by Christopher
03:32
created

ODataExpandedResult   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 11
c 1
b 0
f 1
dl 0
loc 62
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getEntry() 0 3 1
A setFeed() 0 4 1
A setEntry() 0 4 1
A getFeed() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
/**
5
 * Created by PhpStorm.
6
 * User: Barnso
7
 * Date: 16/08/2017
8
 * Time: 5:41 AM.
9
 */
10
namespace POData\ObjectModel;
11
12
/**
13
 * Class ODataExpandedResult.
14
 * @package POData\ObjectModel
15
 */
16
class ODataExpandedResult
17
{
18
    /**
19
     * Term.
20
     *
21
     * @var ODataEntry|null
22
     */
23
    private $entry;
24
25
    /**
26
     * Scheme.
27
     *
28
     * @var ODataFeed|null
29
     */
30
    private $feed;
31
32
    /**
33
     * ODataExpandedResult constructor.
34
     *
35
     * @param ODataEntry|null $entry
36
     * @param ODataFeed|null  $feed
37
     */
38
    public function __construct(ODataEntry $entry = null, ODataFeed $feed = null)
39
    {
40
        $this->entry = $entry;
41
        $this->feed  = $feed;
42
    }
43
44
    /**
45
     * @return ODataEntry|null
46
     */
47
    public function getEntry(): ?ODataEntry
48
    {
49
        return $this->entry;
50
    }
51
52
    /**
53
     * @param ODataEntry|null $entry
54
     * @return ODataExpandedResult
55
     */
56
    public function setEntry(?ODataEntry $entry): ODataExpandedResult
57
    {
58
        $this->entry = $entry;
59
        return $this;
60
    }
61
62
    /**
63
     * @return ODataFeed|null
64
     */
65
    public function getFeed(): ?ODataFeed
66
    {
67
        return $this->feed;
68
    }
69
70
    /**
71
     * @param ODataFeed|null $feed
72
     * @return ODataExpandedResult
73
     */
74
    public function setFeed(?ODataFeed $feed): ODataExpandedResult
75
    {
76
        $this->feed = $feed;
77
        return $this;
78
    }
79
}
80