CookieFactoryInterface
last analyzed

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 19
ccs 0
cts 0
cp 0
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
create() 0 1 ?
parse() 0 1 ?
1
<?php
2
3
/*
4
 * This file is part of the Ivory Http Adapter package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\HttpAdapter\Event\Cookie;
13
14
/**
15
 * @author GeLo <[email protected]>
16
 */
17
interface CookieFactoryInterface
18
{
19
    /**
20
     * @param string $name
21
     * @param string $value
22
     * @param array  $attributes
23
     * @param int    $createdAt
24
     *
25
     * @return CookieInterface
26
     */
27
    public function create($name, $value, array $attributes, $createdAt);
28
29
    /**
30
     * @param string $header
31
     *
32
     * @return CookieInterface
33
     */
34
    public function parse($header);
35
}
36