Elgg\Mocks\Database\Annotations::delete PHP Method

delete() public method

public delete ( $id )
    public function delete($id)
    {
        if (!isset($this->mocks[$id])) {
            return false;
        }
        unset($this->mocks[$id]);
        return true;
    }