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

Method::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
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