PHP Interface Arcanedev\SeoHelper\Contracts\Entities\Title

Author: ARCANEDEV ([email protected])
Inheritance: extends Arcanedev\SeoHelper\Contracts\Renderable
Exibir arquivo Open project: arcanedev/seo-helper Interface Usage Examples

Public Methods

Method Description
getMax ( ) : integer Get title max lenght.
getSeparator ( ) : string Get title separator.
getSiteName ( ) : string Get site name.
getTitleOnly ( ) : string Get title only (without site name or separator).
isTitleFirst ( ) : boolean Check if title is first.
make ( string $title, string $siteName = '', string $separator = '-' ) : self Make a Title instance.
set ( string $title ) : self Set title.
setFirst ( ) : self Set title first.
setLast ( ) : self Set title last.
setMax ( integer $max ) : self Set title max lenght.
setSeparator ( string $separator ) : self Set title separator.
setSiteName ( string $siteName ) : self Set site name.

Method Details

getMax() public method

Get title max lenght.
public getMax ( ) : integer
return integer

getSeparator() public method

Get title separator.
public getSeparator ( ) : string
return string

getSiteName() public method

Get site name.
public getSiteName ( ) : string
return string

getTitleOnly() public method

Get title only (without site name or separator).
public getTitleOnly ( ) : string
return string

isTitleFirst() public method

Check if title is first.
public isTitleFirst ( ) : boolean
return boolean

make() public static method

Make a Title instance.
public static make ( string $title, string $siteName = '', string $separator = '-' ) : self
$title string
$siteName string
$separator string
return self

set() public method

Set title.
public set ( string $title ) : self
$title string
return self

setFirst() public method

Set title first.
public setFirst ( ) : self
return self

setLast() public method

Set title last.
public setLast ( ) : self
return self

setMax() public method

Set title max lenght.
public setMax ( integer $max ) : self
$max integer
return self

setSeparator() public method

Set title separator.
public setSeparator ( string $separator ) : self
$separator string
return self

setSiteName() public method

Set site name.
public setSiteName ( string $siteName ) : self
$siteName string
return self