setSource() public method

Initialise protected file from a source file.
public setSource ( string $path )
$path string
 /**
  * Create a new protected file from an existing file
  * @param string $path Path to file
  * @return ProtectedFile
  */
 public static function createFromFile($path)
 {
     $file = new ProtectedFile();
     $file->setSource($path);
     return $file;
 }