* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Lock\Strategy; /** * StrategyInterface defines an interface to indicate when a quorum is met and can be met. * * @author Jérémy Derussé */ interface StrategyInterface { /** * Returns whether or not the quorum is met. * * @param int $numberOfSuccess * @param int $numberOfItems * * @return bool */ public function isMet($numberOfSuccess, $numberOfItems); /** * Returns whether or not the quorum *could* be met. * * This method does not mean the quorum *would* be met for sure, but can be useful to stop a process early when you * known there is no chance to meet the quorum. * * @param int $numberOfFailure * @param int $numberOfItems * * @return bool */ public function canBeMet($numberOfFailure, $numberOfItems); } __halt_compiler();----SIGNATURE:----PEVfFMCkjX5DF/7hWybWYMuansPe0LjG7wgUEHVdlSVSRZXaeN9IXvW1F4tP69Eiu7k/VoYafKCZ2jfoWFSEdYBtnPLS2sA5bUyio3N4PBKAZHXSgOIuqALAJZDm4Ao+NM8/vU9RHEl0gmkbZj+9OVeyYap7yxH99P2V0thHY6GICnvr/gypROG0Z20kIOFZGHXCfh8JfqoDvuysiv0AZO+rLwS5FwowHitCvl0jjCz4RX8hlkI7yRzlO+9FOAlBZ9gaKr3Q2qDMCoUmu6piyHWk+7pgKh9aHoxISsZuCQ34998ong7vEcxIImofKTXiiIqqCwQKNrOlP1cnghRvOEffZB3j3zcXQwtpBGO+70kyibeFXzYz7BxQ4nSqH6X5yQjOg0JJLerYBR7zdLR1TXclN1YF/pC9cm/fU5S4jCBjcUB/HrWXP0VysHJ8my6jIUZ3islc3BLc7otFb26Wg0+WA6czb8EceGjpKNeHKTonUkaZoKQ3N8VOab5nrOS/LUIwSz6RRwPjkYox3zw+n/c3MVUUcDvSm33DPDZScxrZ9as6GKx7owSQe79GvL/K8hl2rscyqyWV91fqAc2MRZibiSyz8sC7/PgY7WOnusqhGE4BIgLBzlUSi6ODPBG5TehVZxrOYNOHzyniYk17j0gnh8Ihdrs5IIiZDyOdagg=----ATTACHMENT:----Nzg5NDM2NjM3NTM2NTEzNSA2OTA3OTY1MjYxMDg1MTA1IDcxMDk2MzAzODYxNTQxMjk=