public function addView(View $view)
    {
        if ($this->hasView($view->getName())) {
            throw SchemaException::schemaViewAlreadyExists($this->getName(), $view->getName());
        }

        $this->views[$view->getName()] = $view;
    }
public function addView(View $view)
    {
        if ($this->hasView($view->getName())) {
            throw SchemaException::schemaViewAlreadyExists($this->getName(), $view->getName());
        }

        $this->views[$view->getName()] = $view;
    }
public function addView ( View $ view ) { if ( $ this -> hasView ( $ view -> getName ( ) ) ) { throw SchemaException :: schemaViewAlreadyExists ( $ this -> getName ( ) , $ view -> getName ( ) ) ; } $ this -> views [ $ view -> getName ( ) ] = $ view ; }
Adds a view to the schema.

@param \Fridge\DBAL\Schema\View $view The view to add.

@throws \Fridge\DBAL\Exception\SchemaException If the view already exists.
Adds a view to the schema .