HEX
Server: Apache/2.4.34 (Red Hat) OpenSSL/1.0.2k-fips
System: Linux WORDPRESS 3.10.0-1160.118.1.el7.x86_64 #1 SMP Thu Apr 4 03:33:23 EDT 2024 x86_64
User: digital (1020)
PHP: 7.2.24
Disabled: NONE
Upload Files
File: /datos/www/fabricas.colombiatrade.com.co/web_https/core/lib/Drupal/Core/File/ProtectedDirectory.php
<?php

namespace Drupal\Core\File;

/**
 * A value object representing a protected directory.
 */
class ProtectedDirectory {

  /**
   * The directory title.
   *
   * @var string
   */
  protected $title;

  /**
   * The directory path.
   *
   * @var string
   */
  protected $path;

  /**
   * If the directory is private (or public).
   *
   * @var bool
   */
  protected $private;

  /**
   * ProtectedDirectory constructor.
   *
   * @param string $title
   *   The directory title.
   * @param string $path
   *   The path to the directory.
   * @param bool $private
   *   (optional) Whether the directory is private or public (default).
   */
  public function __construct($title, $path, $private = FALSE) {
    $this->title = $title;
    $this->path = $path;
    $this->private = $private;
  }

  /**
   * Gets the title.
   *
   * @return string
   *   The Title.
   */
  public function getTitle() {
    return $this->title;
  }

  /**
   * Gets the directory path.
   *
   * @return string
   *   The directory path.
   */
  public function getPath() {
    return $this->path;
  }

  /**
   * Is the directory private (or public).
   *
   * @return bool
   *   TRUE if the directory is private, FALSE if it is public.
   */
  public function isPrivate() {
    return $this->private;
  }

}