Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
/*
4
 * This file is part of the Symfony package.
5
 *
6
 * (c) Fabien Potencier <fabien@symfony.com>
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 Symfony\Component\Mime\Header;
13
 
14
/**
15
 * A MIME Header.
16
 *
17
 * @author Chris Corbyn
18
 */
19
interface HeaderInterface
20
{
21
    /**
22
     * Sets the body.
23
     *
24
     * The type depends on the Header concrete class.
25
     */
26
    public function setBody(mixed $body);
27
 
28
    /**
29
     * Gets the body.
30
     *
31
     * The return type depends on the Header concrete class.
32
     */
33
    public function getBody(): mixed;
34
 
35
    public function setCharset(string $charset);
36
 
37
    public function getCharset(): ?string;
38
 
39
    public function setLanguage(string $lang);
40
 
41
    public function getLanguage(): ?string;
42
 
43
    public function getName(): string;
44
 
45
    public function setMaxLineLength(int $lineLength);
46
 
47
    public function getMaxLineLength(): int;
48
 
49
    /**
50
     * Gets this Header rendered as a compliant string.
51
     */
52
    public function toString(): string;
53
 
54
    /**
55
     * Gets the header's body, prepared for folding into a final header value.
56
     *
57
     * This is not necessarily RFC 2822 compliant since folding white space is
58
     * not added at this stage (see {@link toString()} for that).
59
     */
60
    public function getBodyAsString(): string;
61
}