Code Duplication    Length = 9-9 lines in 4 locations

src/AppBundle/Entity/Test.php 4 locations

@@ 258-266 (lines=9) @@
255
     *
256
     * @return Test
257
     */
258
    public function setpassed(): Test
259
    {
260
        $this->passed = 1;
261
        $this->failed = 0;
262
        $this->errored = 0;
263
        $this->skipped = 0;
264
265
        return $this;
266
    }
267
268
    /**
269
     * Return 1 if test is passed.
@@ 283-291 (lines=9) @@
280
     *
281
     * @return Test
282
     */
283
    public function setFailed(): Test
284
    {
285
        $this->passed = 0;
286
        $this->failed = 1;
287
        $this->errored = 0;
288
        $this->skipped = 0;
289
290
        return $this;
291
    }
292
293
    /**
294
     * Return 1 if test is failed.
@@ 308-316 (lines=9) @@
305
     *
306
     * @return Test
307
     */
308
    public function setErrored(): Test
309
    {
310
        $this->passed = 0;
311
        $this->failed = 0;
312
        $this->errored = 1;
313
        $this->skipped = 0;
314
315
        return $this;
316
    }
317
318
    /**
319
     * Return 1 if test is errored.
@@ 333-341 (lines=9) @@
330
     *
331
     * @return Test
332
     */
333
    public function setSkipped(): Test
334
    {
335
        $this->passed = 0;
336
        $this->failed = 0;
337
        $this->errored = 0;
338
        $this->skipped = 1;
339
340
        return $this;
341
    }
342
343
    /**
344
     * Return 1 if test is skipped.