// NEXT_MAJOR: BC layer for deprecated RoleInterface on sf 3.4. Remove this if (keep the else) and move the content of the trait back into this class. Trait is final/internal by default so can be removed
9
1
if (interface_exists('\Symfony\Component\Security\Core\Role\RoleInterface')) {
10
/**
11
* Group
12
*
13
* @ORM\Entity
14
* @ORM\Table(name="kuma_groups")
15
*/
16
class Group implements \Symfony\Component\Security\Core\Role\RoleInterface, GroupInterface
The type Kunstmaan\AdminBundle\Entity\Group has been defined more than once; this definition is ignored, only the first definition in this file (L16-19) is considered.
This check looks for classes that have been defined more than once in the same file.
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.
This check looks for classes that have been defined more than once in the same file.
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.