* * 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:----vqpeqLk1aujbGe9Fl7U2kmXTHetWSqgcC7r8pByaqadsuov+rfpUKywj+G24KhRn5+sD1tCTQemnycRn31XvlMftyoKTr7oLY5OvDLTtvVnaFoLPXgYEMJn32ELZYHG6mgQNCTr7c3EOfUiiYCLC5zzWM20wO5Hy+0zhFHSAR2ginFOGT9xfytqGjpGSct2ABYPzgmzKTDuLTySkHtSOfxa/+w0z5YH4FBUlLSplbjZCSi0tL+fGFW2fBZp05Jk5ugd3rImSJJGPOVO3aQv+MtrOBK94ZrIyLSFM0uchK2c36DRv8O6L1S3ZzXbPym9MMIEbFn0SzPYIcWGafcDDGQDUwEs6urhPH136fJylXrNPwt3eZui3UlsS0HFXLX+TU+5XYTJvO7l/hZOftBs1IsQ5kPG+qIW7ZW1LKrK+66JuTxZfrP2CkpVrVMmHhDRzjK0L/AEPP0yrEkTu8Z1BDoxl3CeFeB5APbrMQ8yZrgSIQbgLtvG5edn/XfuM3CSIrAse1UGCh7qYe+OR075yAU4qzFRxC8402cdjRRHFslZDr3sNgWCoHg4ivekQxE+itDUpd/8JtlxqTCxJFPXjstb1tP3MtbFRurWTLWTvZuZnFiTJBahyIvDaFbWPWUlYcCo4yPRuA5PH2V5fEe63M2rKxh4d3NwQ7mpc3dRVs98=----ATTACHMENT:----NjExNDI3MjA5MDQ5MTIwNSA5MzA2MjIwNTkzMjM2MjE4IDc0NjMyMjU5NTE0OTMzODc=