Configurator::getTemplate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 0
cp 0
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php declare(strict_types=1);
2
3
/**
4
* @package   s9e\TextFormatter
5
* @copyright Copyright (c) The s9e authors
6
* @license   http://www.opensource.org/licenses/mit-license.php The MIT License
7
*/
8
namespace s9e\TextFormatter\Plugins\Autovideo;
9
10
use s9e\TextFormatter\Plugins\AbstractStaticUrlReplacer\AbstractConfigurator;
11
12
class Configurator extends AbstractConfigurator
13
{
14
	public    array  $fileExtensions = ['mov', 'mp4', 'ogg', 'webm'];
15
	protected        $attrName       = 'src';
16
	protected        $tagName        = 'VIDEO';
17
18
	protected function getTemplate(): string
19
	{
20
		return '<video controls="" src="{@' . $this->attrName . '}"/>';
21
	}
22
}