-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from snapshotpl/refactor
Module refactor
Showing
9 changed files
with
270 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<?php | ||
|
||
namespace ZfSnapEventDebugger\Entity; | ||
|
||
/** | ||
* Event | ||
* | ||
* @author Witold Wasiczko <[email protected]> | ||
*/ | ||
class Event | ||
{ | ||
protected $id; | ||
protected $name; | ||
|
||
/** | ||
* @var TriggerSource | ||
*/ | ||
protected $triggerSource; | ||
|
||
/** | ||
* @var Listener[] | ||
*/ | ||
protected $listeners = array(); | ||
|
||
/** | ||
* @var Listener[] | ||
*/ | ||
protected $sharedListeners = array(); | ||
|
||
public function getId() | ||
{ | ||
return $this->id; | ||
} | ||
|
||
public function getName() | ||
{ | ||
return $this->name; | ||
} | ||
|
||
public function getTriggerSource() | ||
{ | ||
return $this->triggerSource; | ||
} | ||
|
||
public function getListeners() | ||
{ | ||
return $this->listeners; | ||
} | ||
|
||
public function getSharedListeners() | ||
{ | ||
return $this->sharedListeners; | ||
} | ||
|
||
public function setId($id) | ||
{ | ||
$this->id = $id; | ||
} | ||
|
||
public function setName($name) | ||
{ | ||
$this->name = $name; | ||
} | ||
|
||
public function setTriggerSource(TriggerSource $triggerSource) | ||
{ | ||
$this->triggerSource = $triggerSource; | ||
} | ||
|
||
public function setListeners(array $listeners) | ||
{ | ||
$this->listeners = $listeners; | ||
} | ||
|
||
public function setSharedListeners(array $sharedListeners) | ||
{ | ||
$this->sharedListeners = $sharedListeners; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace ZfSnapEventDebugger\Entity; | ||
|
||
/** | ||
* Listener | ||
* | ||
* @author Witold Wasiczko <[email protected]> | ||
*/ | ||
class Listener | ||
{ | ||
protected $priority; | ||
protected $name; | ||
|
||
public function getPriority() | ||
{ | ||
return $this->priority; | ||
} | ||
|
||
public function getName() | ||
{ | ||
return $this->name; | ||
} | ||
|
||
public function setPriority($priority) | ||
{ | ||
$this->priority = $priority; | ||
} | ||
|
||
public function setName($name) | ||
{ | ||
$this->name = $name; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace ZfSnapEventDebugger\Entity; | ||
|
||
/** | ||
* TriggerSource | ||
* | ||
* @author Witold Wasiczko <[email protected]> | ||
*/ | ||
class TriggerSource | ||
{ | ||
protected $filename; | ||
protected $line; | ||
|
||
public function getFilename() | ||
{ | ||
return $this->filename; | ||
} | ||
|
||
public function getLine() | ||
{ | ||
return $this->line; | ||
} | ||
|
||
public function setFilename($filename) | ||
{ | ||
$this->filename = $filename; | ||
} | ||
|
||
public function setLine($line) | ||
{ | ||
$this->line = $line; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.