php cs and stan fixes

This commit is contained in:
Dennis Eichhorn 2020-03-02 22:49:01 +01:00
parent 771f535ddf
commit a8986da250
2 changed files with 26 additions and 6 deletions

View File

@ -42,10 +42,10 @@ class Profile implements \JsonSerializable
/**
* Profile image.
*
* @var null|int|Media
* @var Media
* @since 1.0.0
*/
protected $image = null;
protected Media $image;
/**
* Birthday.
@ -61,7 +61,7 @@ class Profile implements \JsonSerializable
* @var Account
* @since 1.0.0
*/
protected $account = null;
protected Account $account;
/**
* Location data.

View File

@ -30,9 +30,29 @@ use phpOMS\Views\View;
*/
class BaseView extends View
{
private $id = '';
private $name = '';
private $isRequired = false;
/**
* Dom id
*
* @var string
* @since 1.0.0
*/
private string $id = '';
/**
* Is required?
*
* @var bool
* @since 1.0.0
*/
private bool $isRequired = false;
/**
* Dom name
*
* @var string
* @since 1.0.0
*/
private string $name = '';
/**
* {@inheritdoc}