summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/html/src/Contract/Wrappable.php
blob: c8cf9247aef63547611a20fa5f48cfffb6ff2321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php

namespace ipl\Html\Contract;

use ipl\Html\ValidHtml;

/**
 * Representation of wrappable elements
 */
interface Wrappable extends ValidHtml
{
    /**
     * Get the wrapper, if any
     *
     * @return Wrappable|null
     */
    public function getWrapper();

    /**
     * Set the wrapper
     *
     * @param Wrappable $wrapper
     *
     * @return $this
     */
    public function setWrapper(Wrappable $wrapper);

    /**
     * Add a wrapper
     *
     * @param Wrappable $wrapper
     *
     * @return $this
     */
    public function addWrapper(Wrappable $wrapper);

    /**
     * Prepend a wrapper
     *
     * @param Wrappable $wrapper
     *
     * @return $this
     */
    public function prependWrapper(Wrappable $wrapper);
}