mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-15 07:58:42 +00:00
php cs fixer
This commit is contained in:
parent
f69cb53ab9
commit
e880c85889
|
|
@ -197,7 +197,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function setPlain(string $plain)
|
public function setPlain(string $plain) : void
|
||||||
{
|
{
|
||||||
$this->plain = $plain;
|
$this->plain = $plain;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ final class NewsArticleMapper extends DataMapperAbstract
|
||||||
* @var array<string, array<string, bool|string>>
|
* @var array<string, array<string, bool|string>>
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
static protected $columns = [
|
protected static $columns = [
|
||||||
'news_id' => ['name' => 'news_id', 'type' => 'int', 'internal' => 'id'],
|
'news_id' => ['name' => 'news_id', 'type' => 'int', 'internal' => 'id'],
|
||||||
'news_created_by' => ['name' => 'news_created_by', 'type' => 'int', 'internal' => 'createdBy'],
|
'news_created_by' => ['name' => 'news_created_by', 'type' => 'int', 'internal' => 'createdBy'],
|
||||||
'news_publish' => ['name' => 'news_publish', 'type' => 'DateTime', 'internal' => 'publish'],
|
'news_publish' => ['name' => 'news_publish', 'type' => 'DateTime', 'internal' => 'publish'],
|
||||||
|
|
@ -48,7 +48,7 @@ final class NewsArticleMapper extends DataMapperAbstract
|
||||||
'news_created_at' => ['name' => 'news_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],
|
'news_created_at' => ['name' => 'news_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],
|
||||||
];
|
];
|
||||||
|
|
||||||
static protected $belongsTo = [
|
protected static $belongsTo = [
|
||||||
'createdBy' => [
|
'createdBy' => [
|
||||||
'mapper' => AccountMapper::class,
|
'mapper' => AccountMapper::class,
|
||||||
'src' => 'news_created_by',
|
'src' => 'news_created_by',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user