Swift_Encoder::encodeString()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of SwiftMailer.
5
 * (c) 2004-2009 Chris Corbyn
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
/**
12
 * Interface for all Encoder schemes.
13
 *
14
 * @author Chris Corbyn
15
 */
16
interface Swift_Encoder extends Swift_Mime_CharsetObserver
0 ignored issues
show
Coding Style Compatibility introduced by
Each interface must be in a namespace of at least one level (a top-level vendor name)

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
17
{
18
    /**
19
     * Encode a given string to produce an encoded string.
20
     *
21
     * @param string $string
22
     * @param int    $firstLineOffset if first line needs to be shorter
23
     * @param int    $maxLineLength   - 0 indicates the default length for this encoding
24
     *
25
     * @return string
26
     */
27
    public function encodeString(string $string, int $firstLineOffset = 0, int $maxLineLength = 0);
28
}
29