blob: cf8d7ca7429cad523d460228fdeaf960860d54af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
namespace WpfTest\Model;
use WpfTest\Model;
class Actor extends Model {
public int $id;
public string $self;
public bool $isLocal = false;
public \DateTimeImmutable $created;
public ?\DateTimeImmutable $modified;
public ?string $homepage;
public string $handle;
public string $displayName;
public ?string $avatar;
public ?string $bio;
public ?string $pronouns;
public bool $automated = false;
public bool $requestToFollow = false;
public ActorEndpoints $endpoints;
public array $extensions = [];
public static function findLocalByHandle(string $handle): ?self {
return self::findWhere('is_local = true AND handle = ?', [$handle]);
}
}
|