Source
<?php
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
/**
* Interface describing basic set of methods for waitable objects.
*/
interface IWaitable {
/**
* Condition describing state when object is ready.
*
* @return callable
*/
public function getReadyCondition();
/**
* Condition describing state when object is not ready.
*
* @return callable
*/
public function getNotReadyCondition();
/**
* Condition describing state when object is present.
*
* @return callable
*/
public function getPresentCondition();
/**
* Condition describing state when object is not present.
*
* @return callable
*/
public function getNotPresentCondition();
/**
* Condition describing state when object is visible.
*
* @return callable
*/
public function getVisibleCondition();
/**
* Condition describing state when object is not visible.
*
* @return callable
*/
public function getNotVisibleCondition();
/**