Open Journal Systems  3.3.0
Seboettg\CiteProc\Styles\Css\CssRule Class Reference

Public Member Functions

 __construct ($selector, $selectorType=self::SELECTOR_TYPE_CLASS)
 
 __toString ()
 
 addDirective ($property, $value)
 

Data Fields

const SELECTOR_TYPE_CLASS = "."
 
const SELECTOR_TYPE_ID = "#"
 

Detailed Description

Definition at line 19 of file CssRule.php.

Constructor & Destructor Documentation

◆ __construct()

Seboettg\CiteProc\Styles\Css\CssRule::__construct (   $selector,
  $selectorType = self::SELECTOR_TYPE_CLASS 
)

CssRule constructor.

Parameters
string$selector
string$selectorType

Definition at line 54 of file CssRule.php.

Member Function Documentation

◆ __toString()

Seboettg\CiteProc\Styles\Css\CssRule::__toString ( )
Returns
string

Definition at line 74 of file CssRule.php.

◆ addDirective()

Seboettg\CiteProc\Styles\Css\CssRule::addDirective (   $property,
  $value 
)
Parameters
string$property
string$value

Definition at line 66 of file CssRule.php.

Field Documentation

◆ SELECTOR_TYPE_CLASS

const Seboettg\CiteProc\Styles\Css\CssRule::SELECTOR_TYPE_CLASS = "."

Definition at line 23 of file CssRule.php.

◆ SELECTOR_TYPE_ID

const Seboettg\CiteProc\Styles\Css\CssRule::SELECTOR_TYPE_ID = "#"

Definition at line 21 of file CssRule.php.


The documentation for this class was generated from the following file: