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

TClassBehavior::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

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