PHP Class WPSEO_Admin_Banner, wordpress-seo

Show file Open project: yoast/wordpress-seo Class Usage Examples

Public Methods

Method Description
__construct ( string $url, string $image, integer $width, integer $height, string $alt = '' ) Sets the attributes for this object.
get_alt ( ) : string Returns the alt-text.
get_height ( ) : string Returns the height.
get_image ( ) : string Returns the image.
get_url ( ) : string Returns the set url.
get_width ( ) : string Returns the width.

Method Details

__construct() public method

Sets the attributes for this object.
public __construct ( string $url, string $image, integer $width, integer $height, string $alt = '' )
$url string The URL where the banner links to.
$image string The image filename.
$width integer The width of the image.
$height integer The height of the image.
$alt string The alt text for the image.

get_alt() public method

Returns the alt-text.
public get_alt ( ) : string
return string

get_height() public method

Returns the height.
public get_height ( ) : string
return string

get_image() public method

Returns the image.
public get_image ( ) : string
return string

get_url() public method

Returns the set url.
public get_url ( ) : string
return string

get_width() public method

Returns the width.
public get_width ( ) : string
return string