Code Duplication    Length = 11-13 lines in 2 locations

src/price/AbstractPrice.php 1 location

@@ 47-57 (lines=11) @@
44
     */
45
    protected $plan;
46
47
    public function __construct(
48
                            $id,
49
        TypeInterface       $type,
50
        TargetInterface     $target,
51
        PlanInterface       $plan = null
52
    ) {
53
        $this->id = $id;
54
        $this->type = $type;
55
        $this->target = $target;
56
        $this->plan = $plan;
57
    }
58
59
    /**
60
     * {@inheritdoc}

src/sale/Sale.php 1 location

@@ 50-62 (lines=13) @@
47
     */
48
    protected $time;
49
50
    public function __construct(
51
                            $id,
52
        TargetInterface     $target,
53
        CustomerInterface   $customer,
54
        PlanInterface       $plan,
55
        DateTime            $time = null
56
    ) {
57
        $this->id = $id;
58
        $this->target = $target;
59
        $this->customer = $customer;
60
        $this->plan = $plan;
61
        $this->time = $time;
62
    }
63
64
    public function getId()
65
    {