Passed
Push — master ( d6b975...b2dbc7 )
by Fabio
04:24
created

TClassBehavior   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 27
ccs 4
cts 4
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 2 1
A detach() 0 2 1
A attach() 0 2 1
1
<?php
2
/**
3
 * TClassBehavior class file.
4
 *
5
 * @author Brad Anderson <[email protected]>
6
 * @link https://github.com/pradosoft/prado
7
 * @license https://github.com/pradosoft/prado/blob/master/LICENSE
8
 */
9
10
namespace Prado\Util;
11
12
/**
13
 * TClassBehavior is a convenient base class for whole class behaviors.
14
 * @author Brad Anderson <[email protected]>
15
 * @since 3.2.3
16
 */
17
class TClassBehavior extends \Prado\TComponent implements IClassBehavior
18
{
19
	/**
20
	 * This processes configuration elements [from TBehaviorsModule].  This is usually
21
	 * called before attach but cannot be guaranteed to be called outside the {@link
22
	 * TBehaviorsModule} environment. This is only needed for complex behavior
23
	 * configurations.
24
	 * @param array|\Prado\Xml\TXmlElement $config any innards to the behavior configuration.
25 7
	 */
26
	public function init($config)
27 7
	{
28
	}
29
30
	/**
31
	 * Attaches the behavior object to the component.
32
	 * @param \Prado\TComponent $component the component that this behavior is to be attached to.
33 6
	 */
34
	public function attach($component)
35 6
	{
36
	}
37
38
	/**
39
	 * Detaches the behavior object from the component.
40
	 * @param \Prado\TComponent $component the component that this behavior is to be detached from.
41
	 */
42
	public function detach($component)
43
	{
44
	}
45
}
46