Completed
Push — master ( d58eaa...3f3d99 )
by WEBEWEB
01:38
created

AbstractCodeTwigExtension::bootstrapSampleOutput()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/**
4
 * This file is part of the bootstrap-bundle package.
5
 *
6
 * (c) 2018 NdC/WBW
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Bundle\BootstrapBundle\Twig\Extension\Code;
13
14
use WBW\Bundle\BootstrapBundle\Twig\Extension\AbstractBootstrapTwigExtension;
15
16
/**
17
 * Abstract code Twig extension.
18
 *
19
 * @author NdC/WBW <https://github.com/webeweb/>
20
 * @package WBW\Bundle\BootstrapBundle\Twig\Extension\Code
21
 * @abstract
22
 */
23
abstract class AbstractCodeTwigExtension extends AbstractBootstrapTwigExtension {
24
25
    /**
26
     * Displays a Bootstrap basic block.
27
     *
28
     * @param string $content The basic block content.
29
     * @return string  Returns the Bootstrap deleted text.
30
     */
31
    final protected function bootstrapBasicBlock($content) {
32
        return $this->bootstrapTag("pre", $content);
33
    }
34
35
    /**
36
     * Displays a Bootstrap inline.
37
     *
38
     * @param string $content The inline content.
39
     * @return string  Returns the Bootstrap inline.
40
     */
41
    final protected function bootstrapInline($content) {
42
        return $this->bootstrapTag("code", $content);
43
    }
44
45
    /**
46
     * Displays a Bootstrap sample output.
47
     *
48
     * @param string $content The sample output content.
49
     * @return string  Returns the Bootstrap user input.
50
     */
51
    final protected function bootstrapSampleOutput($content) {
52
        return $this->bootstrapTag("samp", $content);
53
    }
54
55
    /**
56
     * Displays a Bootstrap user input.
57
     *
58
     * @param string $content The user input content.
59
     * @return string  Returns the Bootstrap user input.
60
     */
61
    final protected function bootstrapUserInput($content) {
62
        return $this->bootstrapTag("kbd", $content);
63
    }
64
65
    /**
66
     * Displays a Bootstrap variable.
67
     *
68
     * @param string $content The variable content.
69
     * @return string  Returns the Bootstrap variable.
70
     */
71
    final protected function bootstrapVariable($content) {
72
        return $this->bootstrapTag("var", $content);
73
    }
74
75
}
76