Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
alpha1
Maxence Lange 2018-11-30 09:57:49 -01:00
rodzic 7d8e2b1065
commit ccf7433235
1 zmienionych plików z 12 dodań i 10 usunięć

Wyświetl plik

@ -386,6 +386,18 @@ class Person extends ACore implements JsonSerializable {
return $this;
}
/**
* @param string $detail
* @param bool $value
*
* @return Person
*/
public function addDetailBool(string $detail, bool $value): Person {
$this->details[$detail] = $value;
return $this;
}
/**
* @param array $details
*
@ -424,12 +436,6 @@ class Person extends ACore implements JsonSerializable {
$this->setIcon($icon);
}
// ->setCreation($this->getInt('creation', $data, 0));
// if ($this->getPreferredUsername() === '') {
// $this->setType('Invalid');
// }
}
@ -451,10 +457,6 @@ class Person extends ACore implements JsonSerializable {
->setFeatured($this->get('featured', $data, ''))
->setDetails($this->getArray('details', $data, []))
->setCreation($this->getInt('creation', $data, 0));
// if ($this->getPreferredUsername() === '') {
// $this->setType('Invalid');
// }
}