Passed
Push — main ( 7f530d...7aae9b )
by Thierry
05:54
created

CallbackError   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 35
rs 10
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A startWithInt() 0 2 1
A wrongNameAttr() 0 2 1
A nameWithSpace() 0 2 1
A noName() 0 2 1
A wrongNameType() 0 2 1
1
<?php
2
3
namespace Jaxon\Annotations\Tests\Attr\Ajax;
4
5
use Jaxon\Annotations\Tests\Attr\FuncComponent;
6
7
class CallbackError extends FuncComponent
8
{
9
    /**
10
     * @callback
11
     */
12
    public function noName()
13
    {
14
    }
15
16
    /**
17
     * @callback('name' => [])
18
     */
19
    public function wrongNameType()
20
    {
21
    }
22
23
    /**
24
     * @callback('class' => 'jaxon.ajax.callback.test')
25
     */
26
    public function wrongNameAttr()
27
    {
28
    }
29
30
    /**
31
     * @callback('name' => 'jaxon.ajax callback.test')
32
     */
33
    public function nameWithSpace()
34
    {
35
    }
36
37
    /**
38
     * @callback('class' => '12jaxon.ajax.callback.test')
39
     */
40
    public function startWithInt()
41
    {
42
    }
43
}
44