Pinq\PinqException::invalidIterable PHP Method

invalidIterable() public static method

public static invalidIterable ( $method, $value )
    public static function invalidIterable($method, $value)
    {
        return new self('Invalid argument for %s: expecting array or \\Traversable, %s given', $method, Utilities::getTypeOrClass($value));
    }

Usage Example

コード例 #1
0
ファイル: Repository.php プロジェクト: timetoogo/pinq
 public function removeRange($values)
 {
     if (!Utilities::isIterable($values)) {
         throw PinqException::invalidIterable(__METHOD__, $values);
     }
     $this->executeQuery($this->newMethod(__FUNCTION__, [$values]));
 }