FileTag
extends Entity
in package
implements
JsonSerializable
This class contains information about the tags of files
Tags
Interfaces, Classes, Traits and Enums
- JsonSerializable
Table of Contents
- $color : string|null
- $emoji : string|null
- $id : int
- $name : string
- findByName() : FileTag|null
- Finds the given tag by name
- format() : array{'name': string, 'color': string|null, 'emoji': string|null}
- getFiles() : Iterator<string|int, File>
- Gets the files in this tag
- jsonSerialize() : mixed
Properties
$color
public
string|null
$color
= null
The color of the tag
Tags
$emoji
public
string|null
$emoji
= null
The emoji of the tag
Tags
$id
public
int
$id
Tags
$name
public
string
$name
The name of the tag
Tags
Methods
findByName()
Finds the given tag by name
public
static findByName(string $name) : FileTag|null
Parameters
- $name : string
Tags
Return values
FileTag|null —format()
public
format() : array{'name': string, 'color': string|null, 'emoji': string|null}
Tags
Return values
array{'name': string, 'color': string|null, 'emoji': string|null} —getFiles()
Gets the files in this tag
public
getFiles() : Iterator<string|int, File>
Tags
Return values
Iterator<string|int, File> —jsonSerialize()
public
jsonSerialize() : mixed