Issues (43)

src/Events/Base.php (7 issues)

1
<?php
2
3
namespace TwentyTwoDigital\CashierFastspring\Events;
4
5
use Illuminate\Queue\SerializesModels;
6
7
class Base
8
{
9
    use SerializesModels;
0 ignored issues
show
The trait Illuminate\Queue\SerializesModels requires some properties which are not provided by TwentyTwoDigital\CashierFastspring\Events\Base: $relations, $class, $connection, $keyBy
Loading history...
10
11
    /**
12
     * Create a new event instance.
13
     *
14
     * @param string $id
15
     * @param string $type
16
     * @param bool   $live
17
     * @param bool   $processed
18
     * @param int    $created
19
     * @param array  $data
20
     *
21
     * @return void
22
     */
23 9
    public function __construct($id, $type, $live, $processed, $created, $data)
24
    {
25 9
        $this->id = $id;
0 ignored issues
show
Bug Best Practice introduced by
The property id does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
26 9
        $this->type = $type;
0 ignored issues
show
Bug Best Practice introduced by
The property type does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
27 9
        $this->live = $live;
0 ignored issues
show
Bug Best Practice introduced by
The property live does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
28 9
        $this->processed = $processed;
0 ignored issues
show
Bug Best Practice introduced by
The property processed does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
29 9
        $this->created = $created;
0 ignored issues
show
Bug Best Practice introduced by
The property created does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
30 9
        $this->data = $data;
0 ignored issues
show
Bug Best Practice introduced by
The property data does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
31 9
    }
32
}
33