public function setName($name)
    {
        if (!is_string($name) || (strlen($name) <= 0)) {
            $explodedNamespace = explode('\\', get_class($this));
            $class = $explodedNamespace[count($explodedNamespace) - 1];
            $asset = strtolower(preg_replace('/(.)([A-Z])/', '\\1 \\2', $class));

            throw SchemaException::invalidAssetName($asset);
        }

        $this->name = $name;
    }
public function setName($name)
    {
        if (!is_string($name) || (strlen($name) <= 0)) {
            $explodedNamespace = explode('\\', get_class($this));
            $class = $explodedNamespace[count($explodedNamespace) - 1];
            $asset = strtolower(preg_replace('/(.)([A-Z])/', '\\1 \\2', $class));

            throw SchemaException::invalidAssetName($asset);
        }

        $this->name = $name;
    }
public function setName ( $ name ) { if ( ! is_string ( $ name ) || ( strlen ( $ name ) <= 0 ) ) { $ explodedNamespace = explode ( '\\' , get_class ( $ this ) ) ; $ class = $ explodedNamespace [ count ( $ explodedNamespace ) - 1 ] ; $ asset = strtolower ( preg_replace ( '/(.)([A-Z])/' , '\\1 \\2' , $ class ) ) ; throw SchemaException :: invalidAssetName ( $ asset ) ; } $ this -> name = $ name ; }
Sets the asset name.

@param string $name The asset name.

@throws \Fridge\DBAL\Exception\SchemaException If the name is not a valid string.
Sets the asset name .