tag = $tag; if ($attributes !== null) { $this->attributes = $this->attributes()->add($attributes); } } /** * Container constructor. * * @param string $tag * @param Attributes|array $attributes * * @return static */ public static function create($tag, $attributes = null) { return new static($tag, $attributes); } }