public function __construct(array $params = null) { if ($params && isset($params['allowedTags'])) { $this->allowedTags = $params['allowedTags']; } }