예제 #1
0
 /**
  * Createa Pattern-Inatance and provide it with the given Pattern
  *
  * @param string $pattern The pattern to store
  *
  * @return Pattern
  */
 public static function factory($pattern)
 {
     $p = new Pattern();
     $p->setPattern($pattern);
     return $p;
 }
예제 #2
0
 public function addPattern($value)
 {
     $p = new Pattern();
     $p->setPattern($value);
     $this->setPattern($p);
 }