More return types

This commit is contained in:
Matias De lellis
2021-09-20 21:39:10 -03:00
parent 53ed22172c
commit af37467128
4 changed files with 5 additions and 5 deletions

View File

@@ -57,11 +57,11 @@ class Note extends Entity implements JsonSerializable {
$this->sharedBy = $sharedBy;
}
public function setTags(array $tags) {
public function setTags(array $tags): void {
$this->tags = $tags;
}
public function setAttachts(array $attachts) {
public function setAttachts(array $attachts): void {
$this->attachts = $attachts;
}

View File

@@ -98,7 +98,7 @@ class NoteMapper extends QBMapper {
/**
* @return int
*/
public function colorIdCount($colorid): int {
public function colorIdCount(int $colorid): int {
$qb = $this->db->getQueryBuilder();
$qb->select('id')
->from($this->tableName)

View File

@@ -15,7 +15,7 @@ class NoteTagMapper extends QBMapper {
parent::__construct($db, 'quicknotes_note_tags', NoteTag::class);
}
public function findNoteTag(string $userId, int $noteId, $tagId): NoteTag {
public function findNoteTag(string $userId, int $noteId, int $tagId): NoteTag {
$qb = $this->db->getQueryBuilder();
$qb->select('*')
->from($this->getTableName())