created = new \DateTimeImmutable('now'); } /** * Remove posting. * * @param int $id Posting ID * * @return bool * * @since 1.0.0 */ public function removePosting($id) : bool { if (!isset($this->postings[$id])) { return false; } unset($this->postings[$id]); return true; } /** * {@inheritdoc} */ public function count() : int { return \count($this->postings); } }