mbarbey /
u2f-security-bundle
| 1 | <?php |
||
| 2 | |||
| 3 | /* |
||
| 4 | * This file is part of the U2F Security bundle. |
||
| 5 | * |
||
| 6 | * (c) Michael Barbey <[email protected]> |
||
| 7 | * |
||
| 8 | * For the full copyright and license information, please view the LICENSE |
||
| 9 | * file that was distributed with this source code. |
||
| 10 | */ |
||
| 11 | |||
| 12 | namespace Mbarbey\U2fSecurityBundle\Model\Key; |
||
| 13 | |||
| 14 | use Doctrine\ORM\Mapping as ORM; |
||
|
0 ignored issues
–
show
|
|||
| 15 | use Mbarbey\U2fSecurityBundle\Model\User\U2fUserInterface; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * U2F key entity base |
||
| 19 | * |
||
| 20 | * When you create your entity for the security keys, you can either extends this class or implement the U2fKeyInterface. |
||
| 21 | * |
||
| 22 | * @author Michael Barbey <[email protected]> |
||
| 23 | */ |
||
| 24 | abstract class U2fKey implements U2fKeyInterface |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @ORM\Column(type="string", length=255) |
||
| 28 | */ |
||
| 29 | public $keyHandle; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @ORM\Column(type="string", length=255) |
||
| 33 | */ |
||
| 34 | public $publicKey; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @ORM\Column(type="text") |
||
| 38 | */ |
||
| 39 | public $certificate; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @ORM\Column(type="integer") |
||
| 43 | */ |
||
| 44 | public $counter; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Override the definition of this variable to create the relationship |
||
| 48 | * @var U2fUserInterface |
||
| 49 | */ |
||
| 50 | protected $user; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return string|NULL |
||
| 54 | */ |
||
| 55 | 1 | public function getKeyHandle() |
|
| 56 | { |
||
| 57 | 1 | return $this->keyHandle; |
|
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param string $keyHandle |
||
| 62 | * @return self |
||
| 63 | */ |
||
| 64 | 1 | public function setKeyHandle($keyHandle) |
|
| 65 | { |
||
| 66 | 1 | $this->keyHandle = $keyHandle; |
|
| 67 | |||
| 68 | 1 | return $this; |
|
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return string|NULL |
||
| 73 | */ |
||
| 74 | 1 | public function getPublicKey() |
|
| 75 | { |
||
| 76 | 1 | return $this->publicKey; |
|
| 77 | } |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @param string $publicKey |
||
| 81 | * @return self |
||
| 82 | */ |
||
| 83 | 1 | public function setPublicKey($publicKey) |
|
| 84 | { |
||
| 85 | 1 | $this->publicKey = $publicKey; |
|
| 86 | |||
| 87 | 1 | return $this; |
|
| 88 | } |
||
| 89 | |||
| 90 | /** |
||
| 91 | * @return string|NULL |
||
| 92 | */ |
||
| 93 | 1 | public function getCertificate() |
|
| 94 | { |
||
| 95 | 1 | return $this->certificate; |
|
| 96 | } |
||
| 97 | |||
| 98 | /** |
||
| 99 | * @param string $certificate |
||
| 100 | * @return self |
||
| 101 | */ |
||
| 102 | 1 | public function setCertificate($certificate) |
|
| 103 | { |
||
| 104 | 1 | $this->certificate = $certificate; |
|
| 105 | |||
| 106 | 1 | return $this; |
|
| 107 | } |
||
| 108 | |||
| 109 | /** |
||
| 110 | * @return int|NULL |
||
| 111 | */ |
||
| 112 | 1 | public function getCounter() |
|
| 113 | { |
||
| 114 | 1 | return $this->counter; |
|
| 115 | } |
||
| 116 | |||
| 117 | /** |
||
| 118 | * @param int $counter |
||
| 119 | * @return self |
||
| 120 | */ |
||
| 121 | 1 | public function setCounter($counter) |
|
| 122 | { |
||
| 123 | 1 | $this->counter = $counter; |
|
| 124 | |||
| 125 | 1 | return $this; |
|
| 126 | } |
||
| 127 | |||
| 128 | /** |
||
| 129 | * @return U2fUserInterface|NULL |
||
| 130 | */ |
||
| 131 | 2 | public function getUser() |
|
| 132 | { |
||
| 133 | 2 | return $this->user; |
|
| 134 | } |
||
| 135 | |||
| 136 | /** |
||
| 137 | * @param U2fUserInterface $user |
||
| 138 | * @return self |
||
| 139 | */ |
||
| 140 | 2 | public function setUser(U2fUserInterface $user = null) |
|
| 141 | { |
||
| 142 | 2 | $this->user = $user; |
|
| 143 | |||
| 144 | 2 | return $this; |
|
| 145 | } |
||
| 146 | } |
||
| 147 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths