Code Duplication    Length = 9-9 lines in 2 locations

src/Surfnet/StepupMiddlewareClient/Identity/Dto/RaSecondFactorExportQuery.php 1 location

@@ 163-171 (lines=9) @@
160
    /**
161
     * @param string $status
162
     */
163
    public function setStatus($status)
164
    {
165
        Assert\that($status)->choice(
166
            [self::STATUS_UNVERIFIED, self::STATUS_VERIFIED, self::STATUS_VETTED, self::STATUS_REVOKED, ''],
167
            'Invalid second factor status, must be one of the STATUS constants'
168
        );
169
170
        $this->status = $status ?: null;
171
    }
172
173
    /**
174
     * @param string $orderBy

src/Surfnet/StepupMiddlewareClient/Identity/Dto/RaSecondFactorSearchQuery.php 1 location

@@ 174-182 (lines=9) @@
171
    /**
172
     * @param string $status
173
     */
174
    public function setStatus($status)
175
    {
176
        Assert\that($status)->choice(
177
            [self::STATUS_UNVERIFIED, self::STATUS_VERIFIED, self::STATUS_VETTED, self::STATUS_REVOKED, ''],
178
            'Invalid second factor status, must be one of the STATUS constants'
179
        );
180
181
        $this->status = $status ?: null;
182
    }
183
184
    /**
185
     * @param string $orderBy