Release 2.0.31 (#4245)
* replace strings by class references * allow 64 chars for username * fix time can be optional and null * fix timezone is not respected * bump version * fix br in attribute * support different visible duration from booked duration * fix image URL
This commit is contained in:
@@ -11,14 +11,10 @@ namespace App\WorkingTime\Model;
|
||||
|
||||
final class DayAddon
|
||||
{
|
||||
private string $title;
|
||||
private int $duration;
|
||||
private bool $billable = true;
|
||||
|
||||
public function __construct(string $title, int $duration)
|
||||
public function __construct(private string $title, private int $duration, private int $visibleDuration)
|
||||
{
|
||||
$this->title = $title;
|
||||
$this->duration = $duration;
|
||||
}
|
||||
|
||||
public function getTitle(): string
|
||||
@@ -40,4 +36,9 @@ final class DayAddon
|
||||
{
|
||||
$this->billable = $billable;
|
||||
}
|
||||
|
||||
public function getVisibleDuration(): int
|
||||
{
|
||||
return $this->visibleDuration;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user