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

        if (! preg_match('/^[a-z0-9_.-]{3,255}$/i', $name)) {
            throw InvalidArgumentException::invalidTableName($name);
        }
    }
private function validateTableName($name)
    {
        if (! is_string($name)) {
            throw InvalidArgumentException::invalidType('key', 'string', $name);
        }

        if (! preg_match('/^[a-z0-9_.-]{3,255}$/i', $name)) {
            throw InvalidArgumentException::invalidTableName($name);
        }
    }
private function validateTableName ( $ name ) { if ( ! is_string ( $ name ) ) { throw InvalidArgumentException :: invalidType ( 'key' , 'string' , $ name ) ; } if ( ! preg_match ( '/^[a-z0-9_.-]{3,255}$/i' , $ name ) ) { throw InvalidArgumentException :: invalidTableName ( $ name ) ; } }
Validates a DynamoDB table name.

@see http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html

@param $name string The table name to validate.

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