Select Git revision
ContainersUpdate.php
Forked from
Stud.IP / Stud.IP
Source project has a limited visibility.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Example.php 426 B
<?php
namespace JsonapiExample\Models;
class Example
{
public static $nextId = 1;
public $id;
public $title;
public $mkdate;
public function __construct($title)
{
$this->id = self::$nextId++;
$this->title = $title;
$this->mkdate = time();
}
public static function findAll()
{
return [new Example("foo"), new Example("bar"), new Example("baz")];
}
}