chore: Move account data models and unit test for account repository.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-07-02 18:01:56 +02:00
parent 11a2509bbb
commit de06ff5b0f
48 changed files with 862 additions and 1354 deletions

View File

@@ -4,7 +4,7 @@
*
* @author nuxsmin
* @link https://syspass.org
* @copyright 2012-2021, Rubén Domínguez nuxsmin@$syspass.org
* @copyright 2012-2022, Rubén Domínguez nuxsmin@$syspass.org
*
* This file is part of sysPass.
*
@@ -50,7 +50,7 @@ abstract class DataCollection implements IteratorAggregate, ArrayAccess, Countab
* <b>Traversable</b>
* @since 5.0.0
*/
public function getIterator()
public function getIterator(): Traversable
{
return new ArrayIterator($this->attributes);
}
@@ -100,7 +100,7 @@ abstract class DataCollection implements IteratorAggregate, ArrayAccess, Countab
* @return mixed Can return all value types.
* @since 5.0.0
*/
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
return $this->get($offset);
}