src/Rocketeer/Services/Roles/HasRolesTrait.php
public function isCompatibleWith(HasRolesInterface $hasRoles)
    {
        $roles = $hasRoles->getRoles();
        $filled = array_intersect($this->roles, $roles);

        return is_null($roles) || count($filled) === count($roles);
    }
public function isCompatibleWith(HasRolesInterface $hasRoles)
    {
        $roles = $hasRoles->getRoles();
        $filled = array_intersect($this->roles, $roles);

        return is_null($roles) || count($filled) === count($roles);
    }
public function isCompatibleWith ( HasRolesInterface $ hasRoles ) { $ roles = $ hasRoles -> getRoles ( ) ; $ filled = array_intersect ( $ this -> roles , $ roles ) ; return is_null ( $ roles ) || count ( $ filled ) === count ( $ roles ) ; }
Check if an entity is compatible with another.

@param HasRolesInterface $hasRoles

@return bool
Check if an entity is compatible with another .