summaryrefslogtreecommitdiff
path: root/src/Support/HasPermissions.php
blob: c42d71dca2b88725aff82a4bd649fffd125ac3d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

namespace PHPIAC\Modules\Support;

trait HasPermissions
{
    protected string $owner = '';
    protected string $group = '';
    protected int $mode = 0;

    public function getPermissions($path): string
    {
        return new Permissions($path, $this->owner, $this->group, $this->mode);
    }
}