/** * 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; }
public function addPattern($value) { $p = new Pattern(); $p->setPattern($value); $this->setPattern($p); }