PHP Classes
elePHPant
Icontem

File: classes/css-parser/css-factor.php

Recommend this page to a friend!
  Classes of Gonzalo Chumillas  >  PHP CSS Parser  >  classes/css-parser/css-factor.php  >  Download  
File: classes/css-parser/css-factor.php
Role: Class source
Content type: text/plain
Description: CSSFactor class
Class: PHP CSS Parser
Get HTML document nodes matching a CSS selector
Author: By
Last change: commit
Merge branch 'master' of https://github.com/cequiel/cssparser
update
Date: 2 years ago
Size: 762 bytes
 

Contents

Class file image Download
<?php

class CSSFactor {
    const
DESCENDANT_OPERATOR = "";
    const
CHILD_OPERATOR = ">";
    const
ADJACENT_OPERATOR = "+";
   
   
/**
     * Operator.
     * @var string
     */
   
private $op;
   
   
/**
     * Element.
     * @var CSSElement
     */
   
private $element;
   
   
/**
     * @param string $op
     * @param CSSElement $element
     */
   
public function __construct($op, $element) {
       
$this->op = $op;
       
$this->element = $element;
    }
   
   
/**
     * Gets the operator.
     * @return string
     */
   
public function getOperator() {
        return
$this->op;
    }
   
   
/**
     * Gets the element.
     * @return CSSElement
     */
   
public function getElement() {
        return
$this->element;
    }
}