marcelog/PAMI

View on GitHub
src/PAMI/Message/Event/DongleDeviceEntryEvent.php

Summary

Maintainability
C
1 day
Test Coverage
A
100%

DongleDeviceEntryEvent has 59 functions (exceeds 20 allowed). Consider refactoring.
Open

class DongleDeviceEntryEvent extends EventMessage
{
    /**
     * Returns key: 'Device'.
     *
Severity: Major
Found in src/PAMI/Message/Event/DongleDeviceEntryEvent.php - About 1 day to fix

    The class DongleDeviceEntryEvent has an overall complexity of 59 which is very high. The configured complexity threshold is 50.
    Open

    class DongleDeviceEntryEvent extends EventMessage
    {
        /**
         * Returns key: 'Device'.
         *

    The class DongleDeviceEntryEvent has 59 public methods and attributes. Consider reducing the number of public items to less than 45.
    Open

    class DongleDeviceEntryEvent extends EventMessage
    {
        /**
         * Returns key: 'Device'.
         *

    ExcessivePublicCount

    Since: 0.1

    A large number of public methods and attributes declared in a class can indicate the class may need to be broken up as increased effort will be required to thoroughly test it.

    Example

    public class Foo {
        public $value;
        public $something;
        public $var;
        // [... more more public attributes ...]
    
        public function doWork() {}
        public function doMoreWork() {}
        public function doWorkAgain() {}
        // [... more more public methods ...]
    }

    Source https://phpmd.org/rules/codesize.html#excessivepubliccount

    There are no issues that match your filters.

    Category
    Status