class CompassColourStop in Sassy 7
Hierarchy
- class \SassLiteral
- class \CompassColourStop
Expanded class hierarchy of CompassColourStop
File
- phamlp/
sass/ extensions/ compass/ functions/ colourStops.php, line 45
View source
class CompassColourStop extends SassLiteral {
private $colour;
public $stop;
public function __construct($colour, $stop = null) {
$this->colour = $colour;
$this->stop = $stop;
}
protected function getColor() {
return $this
->getColour();
}
protected function getColour() {
return $this->colour;
}
public function toString() {
$s = $this->colour
->toString();
if (!empty($this->stop)) {
$s .= ' ';
if ($this->stop
->isUnitless()) {
$s .= $this->stop
->op_times(new SassNumber('100%'))
->toString();
}
else {
$s .= $this->stop
->toString();
}
}
return $s;
}
public static function isa($subject) {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CompassColourStop:: |
private | property | ||
CompassColourStop:: |
public | property | ||
CompassColourStop:: |
protected | function | ||
CompassColourStop:: |
protected | function | ||
CompassColourStop:: |
public static | function |
* Returns a value indicating if a token of this type can be matched at
* the start of the subject string.
* Overrides SassLiteral:: |
|
CompassColourStop:: |
public | function |
* Returns a string representation of the value.
* Overrides SassLiteral:: |
|
CompassColourStop:: |
public | function |
* class constructor
* Overrides SassLiteral:: |
|
SassLiteral:: |
private static | property | * | |
SassLiteral:: |
protected | property | * | |
SassLiteral:: |
public | function | * Adds a child object to this. * | |
SassLiteral:: |
public static | function | * Asserts that the value of a literal is within the expected range * | |
SassLiteral:: |
public static | function | * Asserts that the literal is the expected type * | |
SassLiteral:: |
protected | function | * Returns the type of this * | 1 |
SassLiteral:: |
protected | function | * Returns the value of this * | 4 |
SassLiteral:: |
public | function | * The SassScript and operation. * | |
SassLiteral:: |
public | function | ||
SassLiteral:: |
public | function | * Bitwise AND the value of other and this value * | 1 |
SassLiteral:: |
public | function | * Bitwise NOT the value of other and the value of this * | |
SassLiteral:: |
public | function | * Bitwise OR the value of other and this value * | 1 |
SassLiteral:: |
public | function | * Bitwise XOR the value of other and the value of this * | 1 |
SassLiteral:: |
public | function | * SassScript ',' operation. * | |
SassLiteral:: |
public | function | * The SassScript default operation (e.g. $a $b, "foo" "bar"). * | |
SassLiteral:: |
public | function | * SassScript '/' operation. * | 2 |
SassLiteral:: |
public | function | * The SassScript == operation. * | 1 |
SassLiteral:: |
public | function | * The SassScript > operation. * | 1 |
SassLiteral:: |
public | function | * The SassScript >= operation. * | 1 |
SassLiteral:: |
public | function | * The SassScript < operation. * | 1 |
SassLiteral:: |
public | function | * The SassScript <= operation. * | 1 |
SassLiteral:: |
public | function | * SassScript '-' operation. * | 2 |
SassLiteral:: |
public | function | * SassScript '%' operation. * | 2 |
SassLiteral:: |
public | function | * The SassScript != operation. * | |
SassLiteral:: |
public | function | * The SassScript not operation. * | 1 |
SassLiteral:: |
public | function | * The SassScript or operation. * | |
SassLiteral:: |
public | function | * SassScript '+' operation. * | 3 |
SassLiteral:: |
public | function | * Shifts the value of this left by the number of bits given in value * | 1 |
SassLiteral:: |
public | function | * Shifts the value of this right by the number of bits given in value * | 1 |
SassLiteral:: |
public | function | * SassScript '*' operation. * | 3 |
SassLiteral:: |
public | function | * The SassScript xor operation. * | |
SassLiteral:: |
public | function | * Returns the boolean representation of the value of this * | |
SassLiteral:: |
public | function | * Getter. * | |
SassLiteral:: |
public | function |