Everzet\PersistedObjects\FileRepository::remove PHP Method

remove() public method

public remove ( $object )
    public function remove($object)
    {
        $id = $this->stringify($this->getIdentity($object));
        $db = $this->loadDb();
        unset($db[$id]);
        $this->saveDb($db);
    }

Usage Example

 /** {@inheritdoc} */
 public function remove(UuidInterface $reservationId)
 {
     $reservation = $this->get($reservationId);
     $this->file->remove($reservation);
 }