• File: NotSupportingVisibilityTrait.php
  • Full Path: /var/www/crm_set/modules/backup/vendor/league/flysystem/src/Adapter/Polyfill/NotSupportingVisibilityTrait.php
  • Date Modified: 09/21/2026 4:20 AM
  • File size: 750 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace League\Flysystem\Adapter\Polyfill;

use LogicException;

trait NotSupportingVisibilityTrait
{
    /**
     * Get the visibility of a file.
     *
     * @param string $path
     *
     * @throws LogicException
     */
    public function getVisibility($path)
    {
        throw new LogicException(get_class($this) . ' does not support visibility. Path: ' . $path);
    }

    /**
     * Set the visibility for a file.
     *
     * @param string $path
     * @param string $visibility
     *
     * @throws LogicException
     */
    public function setVisibility($path, $visibility)
    {
        throw new LogicException(get_class($this) . ' does not support visibility. Path: ' . $path . ', visibility: ' . $visibility);
    }
}