改名
This commit is contained in:
@@ -193,7 +193,7 @@ trait Condition
|
|||||||
* @param bool $isSearch
|
* @param bool $isSearch
|
||||||
* @return int|string
|
* @return int|string
|
||||||
*/
|
*/
|
||||||
public function valueEncode($value, $isSearch = false)
|
public function valueEncode($value, $isSearch = false)
|
||||||
{
|
{
|
||||||
if ($isSearch) {
|
if ($isSearch) {
|
||||||
return $value;
|
return $value;
|
||||||
|
|||||||
@@ -14,4 +14,18 @@ abstract class Listener extends Component implements IListener
|
|||||||
|
|
||||||
protected $trigger = '';
|
protected $trigger = '';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
* @throws \Exception
|
||||||
|
*/
|
||||||
|
public function getName()
|
||||||
|
{
|
||||||
|
if (empty($this->trigger)) {
|
||||||
|
throw new \Exception('Listener name con\'t empty.');
|
||||||
|
}
|
||||||
|
return $this->trigger;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user