Completed
Push — master ( fe759b...532b8b )
by
unknown
02:54 queued 11s
created

Model/ContextInterface.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Sonata Project package.
7
 *
8
 * (c) Thomas Rabaix <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Sonata\ClassificationBundle\Model;
15
16
interface ContextInterface
0 ignored issues
show
Comprehensibility Best Practice introduced by
The type Sonata\ClassificationBundle\Model\ContextInterface has been defined more than once; this definition is ignored, only the first definition in tests/fixtures/SonataCla...el/ContextInterface.php (L16-25) is considered.

This check looks for classes that have been defined more than once.

If you can, we would recommend to use standard object-oriented programming techniques. For example, to avoid multiple types, it might make sense to create a common interface, and then multiple, different implementations for that interface.

This also has the side-effect of providing you with better IDE auto-completion, static analysis and also better OPCode caching from PHP.

Loading history...
17
{
18
    public function setId($id);
19
20
    public function setName($name);
21
22
    public function setEnabled($enabled);
23
}
24