Skip to content

Commit

Permalink
Preaprations for trait "kod" further use
Browse files Browse the repository at this point in the history
  • Loading branch information
Vítězslav Dvořák committed Apr 18, 2024
1 parent 87a2d4b commit b0162ae
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AbraFlexi/RO.php
Original file line number Diff line number Diff line change
Expand Up @@ -2008,6 +2008,8 @@ public function getRecordID()
* Obtain record/object identificator code:
* Vrací identifikátor objektu code:
*
* @todo move to "kod" trait
*
* @link https://demo.flexibee.eu/devdoc/identifiers Identifikátory záznamů
*
* @return string record code identifier
Expand Down
12 changes: 12 additions & 0 deletions src/AbraFlexi/kod.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,16 @@
*/
trait kod
{
/**
* Obtain record/object identificator code:
* Vrací identifikátor objektu code:
*
* @link https://demo.flexibee.eu/devdoc/identifiers Identifikátory záznamů
*
* @return string record code identifier
*/
public function _getRecordCode()
{
return empty($this->getDataValue('kod')) ? null : self::code($this->getDataValue('kod'));
}
}

0 comments on commit b0162ae

Please sign in to comment.