for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace kalanis\kw_auth\Data;
use kalanis\kw_auth\Interfaces\IGroup;
/**
* Class FileGroup
* @package kalanis\kw_auth\Data
*/
class FileGroup implements IGroup
{
/** @var string */
protected $id = '0';
protected $name = '';
protected $author = '0';
protected $displayName = '';
/** @var int */
protected $status = 0;
/** @var string[] */
protected $parents = [];
public function setGroupData(?string $id, ?string $name, ?string $desc, ?string $authorId, ?int $status, ?array $parents = []): void
$this->id = $id ?? $this->id;
$this->name = $name ?? $this->name;
$this->displayName = $desc ?? $this->displayName;
$this->author = $authorId ?? $this->author;
$this->status = $status ?? $this->status;
$this->parents = $parents ?? $this->parents;
}
public function getGroupId(): string
return $this->id;
public function getGroupName(): string
return $this->name;
public function getGroupAuthorId(): string
return $this->author;
public function getGroupDesc(): string
return $this->displayName;
public function getGroupStatus(): int
return $this->status;
* @return string[]
public function getGroupParents(): array
return $this->parents;