Created
October 18, 2011 16:28
-
-
Save cursedcoder/1295875 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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