Completed
Push — master ( c61dd9...791f1f )
by Thierry
01:36
created

Method   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace Jaxon\Response\Plugin\Call;
4
5
use Jaxon\Request\JsCall;
6
7
class Method extends JsCall
8
{
9
    /**
10
     * The constructor.
11
     *
12
     * @param string        $sMethod            The jQuery function
13
     * @param array         $aArguments         The arguments of the jQuery function
14
     */
15
    public function __construct($sMethod, $aArguments)
16
    {
17
        parent::__construct($sMethod);
18
        // Always use single quotes
19
        $this->useSingleQuotes();
20
        // Add the arguments to the parameter list
21
        $this->addParameters($aArguments);
22
    }
23
}
24