-
Notifications
You must be signed in to change notification settings - Fork 1
/
Config.php
36 lines (27 loc) · 990 Bytes
/
Config.php
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
<?php
declare(strict_types=1);
namespace Dropelikeit\LaravelJmsSerializer\Contracts;
/**
* @author Marcel Strahl <info@marcel-strahl.de>
*/
interface Config
{
public const SERIALIZE_TYPE_JSON = 'json';
public const SERIALIZE_TYPE_XML = 'xml';
public const CACHE_DIR = '/serializer/';
public const KEY_SERIALIZE_NULL = 'serialize_null';
public const KEY_CACHE_DIR = 'cache_dir';
public const KEY_SERIALIZE_TYPE = 'serialize_type';
public const KEY_DEBUG = 'debug';
public const KEY_ADD_DEFAULT_HANDLERS = 'add_default_handlers';
public const KEY_CUSTOM_HANDLERS = 'custom_handlers';
public function getCacheDir(): string;
public function shouldSerializeNull(): bool;
public function getSerializeType(): string;
public function debug(): bool;
public function shouldAddDefaultHeaders(): bool;
/**
* @return array<int, CustomHandlerConfiguration|class-string>
*/
public function getCustomHandlers(): array;
}