Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: AttributeAware.php
<?php /** * This file is part of the Nette Framework (https://nette.org) * Copyright (c) 2004 David Grudl (https://davidgrudl.com) */ declare(strict_types=1); namespace Nette\PhpGenerator\Traits; use Nette\PhpGenerator\Attribute; /** * @internal */ trait AttributeAware { /** @var Attribute[] */ private $attributes = []; /** @return static */ public function addAttribute(string $name, array $args = []): self { $this->attributes[] = new Attribute($name, $args); return $this; } /** * @param Attribute[] $attrs * @return static */ public function setAttributes(array $attrs): self { (function (Attribute ...$attrs) {})(...$attrs); $this->attributes = $attrs; return $this; } /** @return Attribute[] */ public function getAttributes(): array { return $this->attributes; } }