1: <?php
2:
3: namespace Chromabits\Nucleus\View\Common;
4:
5: use Chromabits\Nucleus\View\Interfaces\RenderableInterface;
6: use Chromabits\Nucleus\View\Node;
7:
8: /**
9: * Class Code.
10: *
11: * @author Eduardo Trujillo <ed@chromabits.com>
12: * @package Chromabits\Nucleus\View\Common
13: */
14: class Code extends Node
15: {
16: /**
17: * Construct an instance of a Code.
18: *
19: * @param array $attributes
20: * @param RenderableInterface|RenderableInterface[]|string|string[] $content
21: */
22: public function __construct(
23: array $attributes,
24: $content
25: ) {
26: parent::__construct('code', $attributes, $content, false);
27: }
28: }