keywords)) {
$this->keywords[] = $keyword;
}
}
/**
* Get keywords.
*
* @return string[] Keywords
*
* @since 1.0.0
*/
public function getKeywords() : array
{
return $this->keywords;
}
/**
* Get author.
*
* @return string Author
*
* @since 1.0.0
*/
public function getAuthor() : string
{
return $this->author;
}
/**
* Set author.
*
* @param string $author Author
*
* @return void
*
* @since 1.0.0
*/
public function setAuthor(string $author) /* : void */
{
$this->author = $author;
}
/**
* Get charset.
*
* @return string Charset
*
* @since 1.0.0
*/
public function getCharset() : string
{
return $this->charset;
}
/**
* Set charset.
*
* @param string $charset Charset
*
* @return void
*
* @since 1.0.0
*/
public function setCharset(string $charset) /* : void */
{
$this->charset = $charset;
}
/**
* Get description.
*
* @return string Descritpion
*
* @since 1.0.0
*/
public function getDescription() : string
{
return $this->description;
}
/**
* Set description.
*
* @param string $description Meta description
*
* @return void
*
* @since 1.0.0
*/
public function setDescription(string $description) /* : void */
{
$this->description = $description;
}
/**
* {@inheritdoc}
*/
public function render() : string
{
return (count($this->keywords) > 0 ? '"' : '')
. (!empty($this->author) ? '' : '')
. (!empty($this->description) ? '' : '')
. (!empty($this->charset) ? '' : '')
. '';
}
}