/var/www/cobraambalaj/vendor/phpspec/prophecy/src/Prophecy/Argument/Token
NameSizeModeActions
AnyValuesToken.php9860644editdlrm
AnyValueToken.php9390644editdlrm
ApproximateValueToken.php11660644editdlrm
ArrayCountToken.php17610644editdlrm
ArrayEntryToken.php37320644editdlrm
ArrayEveryEntryToken.php16820644editdlrm
CallbackToken.php15800644editdlrm
ExactValueToken.php30080644editdlrm
IdenticalValueToken.php15100644editdlrm
InArrayToken.php14890644editdlrm
LogicalAndToken.php17840644editdlrm
LogicalNotToken.php15510644editdlrm
NotInArrayToken.php14980644editdlrm
ObjectStateToken.php26170644editdlrm
StringContainsToken.php13000644editdlrm
TokenInterface.php9120644editdlrm
TypeToken.php17010644editdlrm
Edit: /var/www/cobraambalaj/vendor/phpspec/prophecy/src/Prophecy/Argument/Token/InArrayToken.php (1489B)
* Marcello Duarte * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Prophecy\Argument\Token; /** * Check if values is in array * * @author Vinícius Alonso */ class InArrayToken implements TokenInterface { private $token = array(); private $strict; /** * @param array $arguments tokens * @param bool $strict */ public function __construct(array $arguments, $strict = true) { $this->token = $arguments; $this->strict = $strict; } /** * Return scores 8 score if argument is in array. * * @param $argument * * @return bool|int */ public function scoreArgument($argument) { if (count($this->token) === 0) { return false; } if (\in_array($argument, $this->token, $this->strict)) { return 8; } return false; } /** * Returns false. * * @return boolean */ public function isLast() { return false; } /** * Returns string representation for token. * * @return string */ public function __toString() { $arrayAsString = implode(', ', $this->token); return "[{$arrayAsString}]"; } }