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

NotificationAPI   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 17
rs 10
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A handlePullNotification() 0 14 1
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
}