Completed
Pull Request — master (#22)
by Peter
06:18 queued 05:03
created

TwilioCapabilityWrapper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createInstance() 0 4 1
1
<?php
2
3
namespace Vresh\TwilioBundle\Service;
4
5
/**
6
 * This file is part of the VreshTwilioBundle.
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * @author Joseph Le <[email protected]>
12
 */
13
class TwilioCapabilityWrapper extends \Services_Twilio_Capability
14
{
15
    /**
16
     * Returns a new \Services_Twilio_Capability instance from the given parameters
17
     *
18
     * @param      $sid
19
     * @param      $token
20
     *
21
     * @return \Services_Twilio_Capability
22
     */
23
    public function createInstance($sid, $token)
24
    {
25
        return new \Services_Twilio_Capability($sid, $token);
26
    }
27
}
28