TwilioWrapper   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 3
Bugs 0 Features 2
Metric Value
wmc 2
c 3
b 0
f 2
lcom 0
cbo 1
dl 0
loc 29
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A createInstance() 0 4 1
1
<?php
2
namespace Vresh\TwilioBundle\Service;
3
4
/**
5
 * This file is part of the VreshTwilioBundle.
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @author Fridolin Koch <[email protected]>
11
 */
12
class TwilioWrapper extends \Services_Twilio
13
{
14
    /**
15
     * @param string $sid
16
     * @param string $token
17
     * @param null   $version
18
     * @param int    $retryAttempts
19
     */
20
    public function __construct($sid, $token, $version = null, $retryAttempts = 1)
21
    {
22
        parent::__construct($sid, $token, $version, null, $retryAttempts);
23
    }
24
25
    /**
26
     * Returns a new \Services_Twilio instance from the given parameters
27
     *
28
     * @param      $sid
29
     * @param      $token
30
     * @param null $version
31
     * @param int  $retryAttempts
32
     *
33
     * @return \Services_Twilio
34
     */
35
    public function createInstance($sid ,$token, $version = null, $retryAttempts = 1)
36
    {
37
        return new \Services_Twilio($sid, $token, $version, null, $retryAttempts);
38
    }
39
40
}
41