Skip to content

Commit

Permalink
Presenter: added getModule()
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 5, 2020
1 parent adba66a commit 89a989b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Application/UI/Presenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,15 @@ public function getUniqueId(): string
}


/**
* Returns module name.
*/
final public function getModule(): string
{
return Helpers::splitName($this->getName())[0];
}


/********************* interface IPresenter ****************d*g**/


Expand Down

0 comments on commit 89a989b

Please sign in to comment.