Which programming language is this?
trait Timestamps
{
public function touch(): void { $this->updatedAt = time(); }
}
class Post
{
use Timestamps;
public int $updatedAt = 0;
}
Answer: PHP
A
Play Programming Languages ▸
trait pulled into a class with use Timestamps; and $this-> property access are PHP.