ENH Use class name instead of self

This commit is contained in:
Steve Boyd 2024-06-05 16:35:45 +12:00
parent 87e40b5d3b
commit 5bc54796a1

View File

@ -195,7 +195,7 @@ class TagField extends MultiSelectField
* Set the model class name for tags
*
* @param DataList $sourceList
* @return self
* @return TagField
*/
public function setSourceList($sourceList)
{
@ -210,7 +210,7 @@ class TagField extends MultiSelectField
{
$this->addExtraClass('entwine');
return $this->customise($properties)->renderWith(self::class);
return $this->customise($properties)->renderWith(TagField::class);
}
/**
@ -618,9 +618,9 @@ class TagField extends MultiSelectField
public function getSchemaDataType(): string
{
if ($this->getIsMultiple()) {
return self::SCHEMA_DATA_TYPE_MULTISELECT;
return TagField::SCHEMA_DATA_TYPE_MULTISELECT;
}
return self::SCHEMA_DATA_TYPE_SINGLESELECT;
return TagField::SCHEMA_DATA_TYPE_SINGLESELECT;
}
}