JournalInterface::getLimit()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
ccs 0
cts 0
cp 0
c 0
b 0
f 0
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\History;
13
14
use Ivory\HttpAdapter\Message\InternalRequestInterface;
15
use Ivory\HttpAdapter\Message\ResponseInterface;
16
17
/**
18
 * @author GeLo <[email protected]>
19
 */
20
interface JournalInterface extends \Countable, \IteratorAggregate
21
{
22
    /**
23
     * @param InternalRequestInterface $request
24
     * @param ResponseInterface        $response
25
     */
26
    public function record(InternalRequestInterface $request, ResponseInterface $response);
27
28
    public function clear();
29
30
    /**
31
     * @return bool
32
     */
33
    public function hasEntries();
34
35
    /**
36
     * @return JournalEntryInterface[]
37
     */
38
    public function getEntries();
39
40
    /**
41
     * @param JournalEntryInterface[] $entries
42
     */
43
    public function setEntries(array $entries);
44
45
    /**
46
     * @param JournalEntryInterface[] $entries
47
     */
48
    public function addEntries(array $entries);
49
50
    /**
51
     * @param JournalEntryInterface[] $entries
52
     */
53
    public function removeEntries(array $entries);
54
55
    /**
56
     * @param JournalEntryInterface $entry
57
     *
58
     * @return bool
59
     */
60
    public function hasEntry(JournalEntryInterface $entry);
61
62
    /**
63
     * @param JournalEntryInterface $entry
64
     */
65
    public function addEntry(JournalEntryInterface $entry);
66
67
    /**
68
     * @param JournalEntryInterface $entry
69
     */
70
    public function removeEntry(JournalEntryInterface $entry);
71
72
    /**
73
     * @return int
74
     */
75
    public function getLimit();
76
77
    /**
78
     * @param int $limit
79
     */
80
    public function setLimit($limit);
81
}
82