24 lines
No EOL
418 B
PHP
24 lines
No EOL
418 B
PHP
<?php
|
|
|
|
namespace adrienpayet\comments;
|
|
|
|
class Comment extends BaseComment
|
|
{
|
|
protected $position;
|
|
|
|
public function __construct($data) {
|
|
parent::__construct($data);
|
|
$this->position = $data['position'] ?? null;
|
|
}
|
|
|
|
public function position() {
|
|
return $this->position;
|
|
}
|
|
|
|
public function toArray() {
|
|
$array = parent::toArray();
|
|
$array['position'] = $this->position;
|
|
|
|
return $array;
|
|
}
|
|
} |