mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Fix comments
This commit is contained in:
parent
c134daed39
commit
4e746ea66e
|
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
namespace phpOMS\Account;
|
||||
|
||||
use phpOMS\Contract\ArrayableInterface;
|
||||
use phpOMS\Localization\Localization;
|
||||
use phpOMS\Localization\NullLocalization;
|
||||
use phpOMS\Validation\Base\Email;
|
||||
|
|
@ -30,7 +31,7 @@ use phpOMS\Validation\Base\Email;
|
|||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Account
|
||||
class Account implements ArrayableInterface
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -437,6 +438,9 @@ class Account
|
|||
$this->createdAt = $created;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function toArray() : array
|
||||
{
|
||||
return [
|
||||
|
|
@ -455,6 +459,14 @@ class Account
|
|||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get string representation.
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return json_encode($this->toArray());
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
* @link http://orange-management.com
|
||||
*/
|
||||
namespace phpOMS\Account;
|
||||
use phpOMS\Contract\ArrayableInterface;
|
||||
|
||||
/**
|
||||
* Account group class.
|
||||
|
|
@ -26,7 +27,7 @@ namespace phpOMS\Account;
|
|||
* @link http://orange-management.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Group
|
||||
class Group implements ArrayableInterface
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -169,6 +170,9 @@ class Group
|
|||
$this->description = $description;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function toArray() : array
|
||||
{
|
||||
return [
|
||||
|
|
@ -182,6 +186,14 @@ class Group
|
|||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get string representation.
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return json_encode($this->toArray());
|
||||
|
|
|
|||
|
|
@ -1099,11 +1099,29 @@ class DataMapperAbstract implements DataMapperInterface
|
|||
return $query;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get created at column
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public static function getCreatedAt() : string
|
||||
{
|
||||
return static::$createdAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get model based on request object
|
||||
*
|
||||
* @param RequestAbstract $request Request object
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public static function getByRequest(RequestAbstract $request)
|
||||
{
|
||||
if (!is_null($request->getData('id'))) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user