Total Complexity | 5 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | trait OAuths |
||
11 | { |
||
12 | /** |
||
13 | * Add oauth |
||
14 | * |
||
15 | * @param \AppBundle\Entity\OAuth $oauth |
||
16 | * @return object |
||
17 | */ |
||
18 | public function addOAuth(OAuth $oauth) |
||
19 | { |
||
20 | if (!$this->oauths->contains($oauth)) { |
||
21 | $this->oauths->add($oauth); |
||
22 | } |
||
23 | |||
24 | return $this; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Remove oauths |
||
29 | * |
||
30 | * @param \AppBundle\Entity\OAuth $oauth |
||
31 | * @return object |
||
32 | */ |
||
33 | public function removeScenario(OAuth $oauth) |
||
34 | { |
||
35 | if ($this->oauths->contains($oauth)) { |
||
36 | $this->oauths->removeElement($oauth); |
||
37 | } |
||
38 | |||
39 | return $this; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Get oauths |
||
44 | * |
||
45 | * @return \Doctrine\Common\Collections\ArrayCollection |
||
46 | */ |
||
47 | public function getOAuths() |
||
50 | } |
||
51 | } |
||
52 |