id = $id; return $this; } public function getId(): int { return $this->id; } public function setSender(int $sender): self { $this->sender = $sender; return $this; } public function getSender(): int { return $this->sender; } public function setReceiver(int $receiver): self { $this->receiver = $receiver; return $this; } public function getReceiver(): int { return $this->receiver; } public function setSent(float $sent): self { $this->sent = $sent; return $this; } public function getSent(): float { return $this->sent; } public function setActive(bool $active): self { $this->active = $active; return $this; } public function getActive(): bool { return $this->active; } // @codeCoverageIgnoreEnd // }}} Autocode public static function schemaDef(): array { return [ 'name' => 'webmonetization', 'fields' => [ 'id' => ['type' => 'serial', 'not null' => true, 'description' => 'unique identifier'], 'sender' => ['type' => 'int', 'foreign key' => true, 'target' => 'Actor.id', 'multiplicity' => 'many to one', 'not null' => true, 'description' => 'actor sending money'], 'receiver' => ['type' => 'int', 'foreign key' => true, 'target' => 'Actor.id', 'multiplicity' => 'many to one', 'not null' => true, 'description' => 'actor receiving money'], 'sent' => ['type' => 'float', 'not null' => true, 'description' => 'how much sender has sent to receiver'], 'active' => ['type' => 'bool', 'not null' => true, 'description' => 'whether it should donate'], ], 'primary key' => ['id'], ]; } }