Skip to content

Instantly share code, notes, and snippets.

@danieldsf
Created January 20, 2018 09:04
Show Gist options
  • Save danieldsf/d6a9f88555544f9c7954bca1d14c7b20 to your computer and use it in GitHub Desktop.
Save danieldsf/d6a9f88555544f9c7954bca1d14c7b20 to your computer and use it in GitHub Desktop.
<?php
class ManipulaPython{
private $arquivo;
private $diretivaInicial = "python";
private $argumentos = [];
public $isRunnable = false;
function __construct($arquivo = null){
if($arquivo){
$this->arquivo = $arquivo;
$isRunnable = true;
}
}
public function toString(){
return $diretivaInicial." ".$arquivo." ".$argumentos;
}
public function getIsRunnable(){
return $this->isRunnabble;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment