Skip to content

Commit

Permalink
Add setter for BC compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHavl authored Jan 17, 2018
1 parent 1eee611 commit 25f41be
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions src/DhErrorLogging/Options/ModuleOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class ModuleOptions extends AbstractOptions
*/
protected $displayableerrorlevels = E_ALL;


/**
* @return boolean
*/
Expand Down Expand Up @@ -155,23 +156,35 @@ public function getTemplate($key)
return null;
}

/**
* Get level of errors in whitch nice view is presented
* @return int
*/
public function getDisplayableErrorLevels()
{
return $this->displayableerrorlevels;
}

public function setDisplayableErrorLevels($value)
{
$this->displayableerrorlevels = (int)$value;
}

/**
* This is here just for BC and has no effect
* @param mixed $value
*/
public function setPriority($value) {
public function setPriority($value)
{
// this is here just for BC and has no effect
}

/**
* Get level of errors in whitch nice view is presented
* @return int
* This is here just for BC and has no effect
* @param mixed $value
*/
public function getDisplayableErrorLevels() {
return $this->displayableerrorlevels;
public function setZendDbAdapter($value)
{
// this is here just for BC and has no effect
}

public function setDisplayableErrorLevels($value) {
$this->displayableerrorlevels = (int)$value;
}
}
}

0 comments on commit 25f41be

Please sign in to comment.