You are here

class CompassColourStop in Sassy 7

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
CompassColourStop::$colour private property
CompassColourStop::$stop public property
CompassColourStop::getColor protected function
CompassColourStop::getColour protected function
CompassColourStop::isa 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::isa
CompassColourStop::toString public function * Returns a string representation of the value. * Overrides SassLiteral::toString
CompassColourStop::__construct public function * class constructor * Overrides SassLiteral::__construct
SassLiteral::$typeOf private static property *
SassLiteral::$value protected property *
SassLiteral::addChild public function * Adds a child object to this. *
SassLiteral::assertInRange public static function * Asserts that the value of a literal is within the expected range *
SassLiteral::assertType public static function * Asserts that the literal is the expected type *
SassLiteral::getTypeOf protected function * Returns the type of this * 1
SassLiteral::getValue protected function * Returns the value of this * 4
SassLiteral::op_and public function * The SassScript and operation. *
SassLiteral::op_assign public function
SassLiteral::op_bw_and public function * Bitwise AND the value of other and this value * 1
SassLiteral::op_bw_not public function * Bitwise NOT the value of other and the value of this *
SassLiteral::op_bw_or public function * Bitwise OR the value of other and this value * 1
SassLiteral::op_bw_xor public function * Bitwise XOR the value of other and the value of this * 1
SassLiteral::op_comma public function * SassScript ',' operation. *
SassLiteral::op_concat public function * The SassScript default operation (e.g. $a $b, "foo" "bar"). *
SassLiteral::op_div public function * SassScript '/' operation. * 2
SassLiteral::op_eq public function * The SassScript == operation. * 1
SassLiteral::op_gt public function * The SassScript > operation. * 1
SassLiteral::op_gte public function * The SassScript >= operation. * 1
SassLiteral::op_lt public function * The SassScript < operation. * 1
SassLiteral::op_lte public function * The SassScript <= operation. * 1
SassLiteral::op_minus public function * SassScript '-' operation. * 2
SassLiteral::op_modulo public function * SassScript '%' operation. * 2
SassLiteral::op_neq public function * The SassScript != operation. *
SassLiteral::op_not public function * The SassScript not operation. * 1
SassLiteral::op_or public function * The SassScript or operation. *
SassLiteral::op_plus public function * SassScript '+' operation. * 3
SassLiteral::op_shiftl public function * Shifts the value of this left by the number of bits given in value * 1
SassLiteral::op_shiftr public function * Shifts the value of this right by the number of bits given in value * 1
SassLiteral::op_times public function * SassScript '*' operation. * 3
SassLiteral::op_xor public function * The SassScript xor operation. *
SassLiteral::toBoolean public function * Returns the boolean representation of the value of this *
SassLiteral::__get public function * Getter. *
SassLiteral::__toString public function