文件操作 - Set.php
返回文件管理
返回主菜单
删除本文件
文件: /opt/cpanel/ea-wappspector/vendor/rector/rector/src/Set/ValueObject/Set.php
编辑文件内容
<?php declare (strict_types=1); namespace Rector\Set\ValueObject; use Rector\Set\Contract\SetInterface; use RectorPrefix202411\Webmozart\Assert\Assert; /** * @api used by extensions */ final class Set implements SetInterface { /** * @readonly * @var string */ private $groupName; /** * @readonly * @var string */ private $setName; /** * @readonly * @var string */ private $setFilePath; public function __construct(string $groupName, string $setName, string $setFilePath) { $this->groupName = $groupName; $this->setName = $setName; $this->setFilePath = $setFilePath; Assert::fileExists($setFilePath); } public function getGroupName() : string { return $this->groupName; } public function getName() : string { return $this->setName; } public function getSetFilePath() : string { return $this->setFilePath; } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件