Respect\Validation\Exceptions\ValidationException::getTemplate PHP Method

getTemplate() public method

public getTemplate ( )
    public function getTemplate()
    {
        if (!empty($this->template)) {
            return $this->template;
        }
        return $this->template = $this->buildTemplate();
    }

Usage Example

 public function testSettingTemplates()
 {
     $x = new ValidationException();
     $x->configure('bar');
     $x->setTemplate('foo');
     $this->assertEquals('foo', $x->getTemplate());
 }