Pinq\PinqException::invalidIterable PHP 메소드

invalidIterable() 공개 정적인 메소드

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
 public function removeRange($values)
 {
     if (!Utilities::isIterable($values)) {
         throw PinqException::invalidIterable(__METHOD__, $values);
     }
     $this->executeQuery($this->newMethod(__FUNCTION__, [$values]));
 }