/** * @param Command $command * @param string[] $propries * */ public static function analise(Command $command, $propries) { $cssContent = NULL; foreach ($propries as $prop => $value) { if ('validate' == $prop) { # valor da propriedade $propValue = $command->popProperty($prop); $validates = explode(',', $propValue); foreach ($validates as $validate) { $cssContent .= ' ' . self::$_dictionary[trim($validate)]; } } } if (NULL !== $cssContent) { $propries->class = trim($cssContent); } }
/** * @return string * */ public function close() { return PHP_EOL . parent::close(); }
/** * @return string * */ public function open() { $text = $this->popProperty('value'); return parent::open() . $text; }