Issues (11)

src/Services/InboundServiceInterface.php (2 issues)

1
<?php
2
3
/*
4
 * This file is part of PHP CS Fixer.
5
 *
6
 * (c) Fabien Potencier <[email protected]>
7
 *     Dariusz RumiƄski <[email protected]>
8
 *
9
 * This source file is subject to the MIT license that is bundled
10
 * with this source code in the file LICENSE.
11
 */
12
13
namespace Etrias\EwarehousingConnector\Services;
14
15
use DateTime;
16
use Etrias\EwarehousingConnector\Response\InboundResponse;
17
use Etrias\EwarehousingConnector\Response\SuccessResponse;
18
use Etrias\EwarehousingConnector\Types\InboundLine;
19
20
interface InboundServiceInterface
21
{
22
    /**
23
     * @param DateTime      $from
24
     * @param DateTime|null $to
25
     * @param int           $page
26
     * @param null          $sort
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $sort is correct as it would always require null to be passed?
Loading history...
27
     * @param null          $direction
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $direction is correct as it would always require null to be passed?
Loading history...
28
     *
29
     * @return InboundResponse[]
30
     */
31
    public function getListing(DateTime $from, DateTime $to = null, $page = 1, $sort = null, $direction = null);
32
33
    /**
34
     * @param $reference
35
     * @param InboundLine[] $lines
36
     *
37
     * @return SuccessResponse
38
     */
39
    public function createInbound($reference, array $lines);
40
}
41