Add type hints
[MAILPOET-1798]
This commit is contained in:
committed by
Jack Kitterhing
parent
55da20c8ce
commit
4da5b2e5c4
@ -102,7 +102,7 @@ class FormEntity {
|
|||||||
$this->styles = $styles;
|
$this->styles = $styles;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function toArray() {
|
public function toArray(): array {
|
||||||
return [
|
return [
|
||||||
'id' => $this->getId(),
|
'id' => $this->getId(),
|
||||||
'name' => $this->getName(),
|
'name' => $this->getName(),
|
||||||
|
@ -18,7 +18,10 @@ class FormsRepository extends Repository {
|
|||||||
return FormEntity::class;
|
return FormEntity::class;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function findAllNotDeleted() {
|
/**
|
||||||
|
* @return FormEntity[]
|
||||||
|
*/
|
||||||
|
public function findAllNotDeleted(): array {
|
||||||
return $this->entityManager
|
return $this->entityManager
|
||||||
->createQueryBuilder()
|
->createQueryBuilder()
|
||||||
->select('f')
|
->select('f')
|
||||||
|
Reference in New Issue
Block a user