Skip to content

Commit d50da9c

Browse files
committed
Removed unnecessary 'id' property from Event model
1 parent 331d3a4 commit d50da9c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Gitlab/Model/Event.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,16 @@ class Event extends AbstractModel
2020

2121
public static function fromArray(Client $client, Project $project, array $data)
2222
{
23-
$event = new Event($project, $data['id'], $client);
23+
$event = new Event($project, $client);
2424

2525
return $event->hydrate($data);
2626
}
2727

28-
public function __construct(Project $project, $id = null, Client $client = null)
28+
public function __construct(Project $project, Client $client = null)
2929
{
3030
$this->setClient($client);
3131

3232
$this->project = $project;
33-
$this->id = $id;
3433
}
3534

3635
}

0 commit comments

Comments
 (0)