Use global namespace+minor fixes

This commit is contained in:
Dennis Eichhorn 2019-02-04 22:29:55 +01:00
parent 3491fd57bc
commit e1ddb994a1
2 changed files with 7 additions and 3 deletions

View File

@ -79,7 +79,7 @@ class Client
public function setReverseNumber($rev_no) : void public function setReverseNumber($rev_no) : void
{ {
if (!is_scalar($rev_no)) { if (!\is_scalar($rev_no)) {
throw new \Exception(); throw new \Exception();
} }

View File

@ -75,8 +75,12 @@ final class ClientMapper extends DataMapperAbstract
'mapper' => ProfileMapper::class, 'mapper' => ProfileMapper::class,
'src' => 'clientmgmt_client_account', 'src' => 'clientmgmt_client_account',
], ],
]; ]; /**
* Has many relation.
*
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $hasMany = [ protected static $hasMany = [
'files' => [ 'files' => [
'mapper' => MediaMapper::class, /* mapper of the related object */ 'mapper' => MediaMapper::class, /* mapper of the related object */