This commit is contained in:
71 files changed
+7241
No files matched your search
@@ -0,0 +1,22 @@
|
||||
<?php namespace SokoWeb\Response;
|
||||
|
||||
use SokoWeb\Interfaces\Response\IContent;
|
||||
|
||||
abstract class ContentBase implements IContent
|
||||
{
|
||||
protected array $data;
|
||||
|
||||
public function setData(array $data): void
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
public function getData(): array
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
abstract public function render(): void;
|
||||
|
||||
abstract public function getContentType(): string;
|
||||
}
|
||||
Reference in new issue
Block a user