| 1 | <?php |
||
| 22 | class Token extends HeaderPart |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Initializes a token. |
||
| 26 | * |
||
| 27 | * @param string $value the token's value |
||
| 28 | */ |
||
| 29 | 3 | public function __construct($value) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Returns true if the value of the token is equal to a single space. |
||
| 36 | * |
||
| 37 | * @return bool |
||
| 38 | */ |
||
| 39 | 2 | public function isSpace() |
|
| 43 | |||
| 44 | /** |
||
| 45 | * Returns true if the value is a space. |
||
| 46 | * |
||
| 47 | * @return bool |
||
| 48 | */ |
||
| 49 | 2 | public function ignoreSpacesBefore() |
|
| 53 | |||
| 54 | /** |
||
| 55 | * Returns true if the value is a space. |
||
| 56 | * |
||
| 57 | * @return bool |
||
| 58 | */ |
||
| 59 | 2 | public function ignoreSpacesAfter() |
|
| 63 | } |
||
| 64 |