lib/Doctrine/KeyValueStore/Storage/DynamoDbStorage.php
private function validateKeyName($name)
    {
        if (! is_string($name)) {
            throw InvalidArgumentException::invalidType('key', 'string', $name);
        }

        $len = strlen($name);
        if ($len > 255 || $len < 1) {
            throw InvalidArgumentException::invalidLength('name', 1, 255);
        }
    }
private function validateKeyName($name)
    {
        if (! is_string($name)) {
            throw InvalidArgumentException::invalidType('key', 'string', $name);
        }

        $len = strlen($name);
        if ($len > 255 || $len < 1) {
            throw InvalidArgumentException::invalidLength('name', 1, 255);
        }
    }
private function validateKeyName ( $ name ) { if ( ! is_string ( $ name ) ) { throw InvalidArgumentException :: invalidType ( 'key' , 'string' , $ name ) ; } $ len = strlen ( $ name ) ; if ( $ len > 255 || $ len < 1 ) { throw InvalidArgumentException :: invalidLength ( 'name' , 1 , 255 ) ; } }
Validates a DynamoDB key name.

@param $name mixed The name to validate.

@throws InvalidArgumentException When the key name is invalid.
Validates a DynamoDB key name .