src/ViewAwareTrait.php
public function getView(): ViewInterface
    {
        if (null === $this->view) {
            $this->setView(
                $this->getDefaultView()
            );
        }

        return $this->view;
    }
public function getView(): ViewInterface
    {
        if (null === $this->view) {
            $this->setView(
                $this->getDefaultView()
            );
        }

        return $this->view;
    }
public function getView ( ) : ViewInterface { if ( null === $ this -> view ) { $ this -> setView ( $ this -> getDefaultView ( ) ) ; } return $ this -> view ; }
View getter.

@throws UnexpectedValueException If view is null.
@throws UnexpectedValueException If view is not an instance of ViewInterface.

@return ViewInterface
View getter .