refactored page actions to event subscriber (#2420)
This commit is contained in:
@@ -49,6 +49,9 @@ class ActivityMeta implements MetaTableTypeInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Activity|null
|
||||
*/
|
||||
public function getEntity(): ?EntityWithMetaFields
|
||||
{
|
||||
return $this->activity;
|
||||
|
||||
@@ -49,6 +49,9 @@ class CustomerMeta implements MetaTableTypeInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Customer|null
|
||||
*/
|
||||
public function getEntity(): ?EntityWithMetaFields
|
||||
{
|
||||
return $this->customer;
|
||||
|
||||
@@ -49,6 +49,9 @@ class ProjectMeta implements MetaTableTypeInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Project|null
|
||||
*/
|
||||
public function getEntity(): ?EntityWithMetaFields
|
||||
{
|
||||
return $this->project;
|
||||
|
||||
@@ -367,6 +367,11 @@ class Timesheet implements EntityWithMetaFields, ExportItemInterface
|
||||
return $this->end;
|
||||
}
|
||||
|
||||
public function isRunning(): bool
|
||||
{
|
||||
return $this->end === null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param DateTime $end
|
||||
* @return Timesheet
|
||||
|
||||
@@ -49,6 +49,9 @@ class TimesheetMeta implements MetaTableTypeInterface
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Timesheet|null
|
||||
*/
|
||||
public function getEntity(): ?EntityWithMetaFields
|
||||
{
|
||||
return $this->timesheet;
|
||||
|
||||
Reference in New Issue
Block a user