CafeGateway::receiveDelivery()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 3 Features 0
Metric Value
c 3
b 3
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
use PEIP\Gateway\SimpleMessagingGateway;
4
5
class CafeGateway extends SimpleMessagingGateway
6
{
7
    public function placeOrder(Order $order)
8
    {
9
        echo "\nCafe: place order #".$order->getOrderNumber();
10
        $this->send($order);
11
    }
12
13
    public function receiveDelivery()
14
    {
15
        return $this->receive();
16
    }
17
}
18