MCPcopy Create free account
hub / github.com/apache/avro / isValidCodec

Method isValidCodec

lang/php/lib/DataFile/AvroDataIO.php:196–199  ·  view source on GitHub ↗

* @param string $codec * @returns boolean true if $codec is a valid codec value and false otherwise */

($codec)

Source from the content-addressed store, hash-verified

194 * @returns boolean true if $codec is a valid codec value and false otherwise
195 */
196 public static function isValidCodec($codec)
197 {
198 return in_array($codec, self::validCodecs());
199 }
200
201 /**
202 * @returns array array of valid codecs

Callers 2

__constructMethod · 0.80
__constructMethod · 0.80

Calls 1

validCodecsMethod · 0.95

Tested by

no test coverage detected