This is an error 404
There are `0` results
preferences:
144.36 ms | 1390 KiB | 7 Q<?php
declare(strict_types = 1);
namespace TF\Core\Model;
trait tObjectID
{
/**
* @TF: {column => id, type => int}
*/
protected $id;
public function getId(): int
{
return $this->id;
}
public function setId(int $id): void
{
$this->id = $id;
}
}
abstract class Object
{
}
class Gallery extends Object
{
use tObjectID;
}
$x = new Gallery();
$x->setId(10);
$x->setId('10');