Completed
Push — master ( 2af8a7...e05d39 )
by Gareth
05:52 queued 15s
created

NotificationAPI::handlePullNotification()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 8
c 0
b 0
f 0
nc 1
nop 3
dl 0
loc 14
rs 9.4285
1
<?php
2
3
namespace garethp\ews;
4
5
use garethp\ews\API\ClassMap;
6
7
class NotificationAPI
8
{
9
    public static function handlePullNotification($uri, callable $handle, array $options = array())
0 ignored issues
show
Unused Code introduced by
The parameter $options is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
10
    {
11
        $server = new \SoapServer(
12
            __DIR__ . '/../Resources/wsdl/notification-service.wsdl',
13
            [
14
                'uri' => $uri,
15
                'classmap' => ClassMap::getClassMap(),
16
            ]
17
        );
18
        $server->setObject(new NotificationHandler($handle));
19
        $server->handle();
20
21
        return $server;
22
    }
23
}