Completed
Push — master ( bb6905...021686 )
by Grégoire
18s queued 12s
created

Model/CategoryInterface.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 CategoryInterface
0 ignored issues
show
Comprehensibility Best Practice introduced by
The type Sonata\ClassificationBun...Model\CategoryInterface has been defined more than once; this definition is ignored, only the first definition in tests/Fixtures/SonataCla...l/CategoryInterface.php (L16-27) 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 getContext();
19
20
    public function setContext($context);
21
22
    public function setName($name);
23
24
    public function setEnabled($enabled);
25
26
    public function setPosition($position);
27
}
28