Code Duplication    Length = 20-20 lines in 2 locations

PHPDaemon/Clients/AMQP/Driver/Protocol/v091/Protocol/Queue/QueueDeleteOkFrame.php 1 location

@@ 13-32 (lines=20) @@
10
 * @author Aleksey I. Kuleshov YOU GLOBAL LIMITED
11
 * @package PHPDaemon\Clients\AMQP\Driver\Protocol\v091\Protocol\Queue
12
 */
13
class QueueDeleteOkFrame implements MethodFrame, IncomingFrame
14
{
15
    const METHOD_ID = 0x00320029;
16
17
    public $frameChannelId = 0;
18
    public $messageCount; // long
19
20
    public static function create(
21
        $messageCount = null
22
    )
23
    {
24
        $frame = new self();
25
26
        if (null !== $messageCount) {
27
            $frame->messageCount = $messageCount;
28
        }
29
30
        return $frame;
31
    }
32
}
33

PHPDaemon/Clients/AMQP/Driver/Protocol/v091/Protocol/Queue/QueuePurgeOkFrame.php 1 location

@@ 13-32 (lines=20) @@
10
 * @author Aleksey I. Kuleshov YOU GLOBAL LIMITED
11
 * @package PHPDaemon\Clients\AMQP\Driver\Protocol\v091\Protocol\Queue
12
 */
13
class QueuePurgeOkFrame implements MethodFrame, IncomingFrame
14
{
15
    const METHOD_ID = 0x0032001f;
16
17
    public $frameChannelId = 0;
18
    public $messageCount; // long
19
20
    public static function create(
21
        $messageCount = null
22
    )
23
    {
24
        $frame = new self();
25
26
        if (null !== $messageCount) {
27
            $frame->messageCount = $messageCount;
28
        }
29
30
        return $frame;
31
    }
32
}
33