Skip to content

Instantly share code, notes, and snippets.

@cursedcoder
Created October 18, 2011 16:28
Show Gist options
  • Save cursedcoder/1295875 to your computer and use it in GitHub Desktop.
Save cursedcoder/1295875 to your computer and use it in GitHub Desktop.
<?php
namespace MAD\FileManagerBundle\Core;
class Item {
private $path;
private $name;
private $isWritable;
private $isReadable;
public function __construct($finderObj) {
$this->path = $finderObj->getFileName();
$this->name = $finderObj->getFileName();
$this->isWritable = $finderObj->isWritable();
$this->isReadable = $finderObj->isReadable();
}
public function getPath() {
return $this->path;
}
public function getName() {
return $this->name;
}
public function isWritable() {
return $this->isWritable;
}
public function isReadable() {
return $this->isReadable;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment