Add isIterable modifier

This commit is contained in:
bzick 2013-07-20 21:28:03 +04:00
parent ed8098604b
commit 0b4d026050

View File

@ -157,4 +157,12 @@ class Modifier {
}
return false;
}
/**
* @param $value
* @return bool
*/
public static function isIterable($value) {
return is_array($value) || ($value instanceof \Iterator);
}
}