1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51:
<?php
namespace Net\Bazzline\Component\Requirement;
/**
* Class RequirementInterface
*
* @package Net\Bazzline\Component\Requirement
* @author stev leibelt <artodeto@bazzline.net>
* @since 2013-06-25
*/
interface RequirementInterface extends IsDisabledInterface, IsMetInterface
{
/**
* Adds a condition to the requirement
* Throws exception if requirement is locked
*
* @param ConditionInterface $condition
* @return $this
* @throws \RuntimeException
* @author stev leibelt <artodeto@bazzline.net>
* @since 2013-06-25
*/
public function addCondition(ConditionInterface $condition);
/**
* Test of requirement is locked
*
* @return boolean
* @author stev leibelt <artodeto@bazzline.net>
* @since 2013-06-29
*/
public function isLocked();
/**
* Locks requirement, no condition could be added afterwards
*
* @return $this
* @throws \RuntimeException
* @author stev leibelt <artodeto@bazzline.net>
* @since 2013-06-29
*/
public function lock();
/**
* @return null|ConditionInterface[]
* @author stev leibelt <artodeto@bazzline.net>
* @since 2013-09-29
*/
public function getConditions();
}