. * * The interactive user interfaces in modified source and object code versions * of this program must display Appropriate Legal Notices, as required under * Section 5 of the GNU Affero General Public License version 3. * * In accordance with Section 7(b) of the GNU Affero General Public License version 3, * these Appropriate Legal Notices must retain the display of the "EspoCRM" word. ************************************************************************/ namespace Espo\Entities; use Espo\Core\Field\LinkParent; use Espo\Core\Name\Field; use Espo\Core\ORM\Entity; class UserReaction extends Entity { const ENTITY_TYPE = 'UserReaction'; public function getType(): string { return $this->get('type'); } public function getParent(): LinkParent { /** @var LinkParent */ return $this->getValueObject(Field::PARENT); } public function setType(string $type): self { $this->set('type', $type); return $this; } public function setParent(Note $note): self { $this->relations->set(Field::PARENT, $note); return $this; } public function setUser(User $user): self { $this->relations->set('user', $user); return $this; } }