-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
54 additions
and
11 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* Created by PhpStorm. | ||
* User: miles | ||
* Date: 19/12/15 | ||
* Time: 11:32 | ||
* This file is part of the m1\vars library | ||
* | ||
* (c) m1 <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @package m1/vars | ||
* @version 0.3.0 | ||
* @author Miles Croxford <[email protected]> | ||
* @copyright Copyright (c) Miles Croxford <[email protected]> | ||
* @license http://github.com/m1/vars/blob/master/LICENSE | ||
* @link http://github.com/m1/vars/blob/master/README.MD Documentation | ||
*/ | ||
|
||
namespace M1\Vars\Traits; | ||
|
||
/** | ||
* Path trait gives common operation functions needed for Paths in Vars | ||
* | ||
* @since 0.1.0 | ||
*/ | ||
trait PathTrait | ||
{ | ||
/** | ||
|
@@ -30,8 +45,9 @@ public function getPath() | |
/** | ||
* Set the Vars base path | ||
* | ||
* @param string $path The path to set | ||
* | ||
* @param string $path The path to set | ||
* @param boolean $check_writeable Check whether dir is writeable | ||
* @throws \InvalidArgumentException If the path does not exist or is not writable | ||
* | ||
* @return \M1\Vars\Vars | ||
|
@@ -52,4 +68,4 @@ public function setPath($path, $check_writeable = false) | |
$this->path = realpath($path); | ||
return $this; | ||
} | ||
} | ||
} |
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