Passed
Push — master ( d021a5...a13070 )
by Sam
03:47 queued 12s
created

WatchTVShowModal   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getWatchButtonOptions() 0 5 1
A getInnerWidgetClass() 0 3 1
1
<?php
2
3
/**
4
 * Watch modal for episodes
5
 *
6
 * @author Sam Stenvall <[email protected]>
7
 * @copyright Copyright &copy; Sam Stenvall 2014-
8
 * @license https://www.gnu.org/licenses/gpl.html The GNU General Public License v3.0
9
 * 
10
 * TODO: Rename to WatchEpisodeModal (and the inner widget accordingly)
11
 */
12
class WatchTVShowModal extends WatchMediaModal
13
{
14
15
	protected function getInnerWidgetClass()
16
	{
17
		return 'RetrieveTVShowWidget';
18
	}
19
20
	protected function getWatchButtonOptions()
21
	{
22
		return array(
23
			'color'=>TbHtml::BUTTON_COLOR_PRIMARY,
24
			'size'=>TbHtml::BUTTON_SIZE_SMALL,
25
		);
26
	}
27
28
}
29