projecten

This commit is contained in:
2018-01-18 08:45:09 +01:00
parent 00246f49f7
commit 970aa53971
25 changed files with 689 additions and 285 deletions
@@ -8,7 +8,7 @@
class RemoveProject {
private $offerID;
private $projectID;
private $allowDelete = TRUE;
public function __construct( $projectID )
@@ -23,9 +23,9 @@ class RemoveProject {
return $this->allowDelete;
}
private function setProjectID( $customerID )
private function setProjectID( $projectID )
{
$this->offerID = $customerID;
$this->projectID = $projectID;
}
private function handle()
@@ -35,9 +35,9 @@ class RemoveProject {
private function checkForOffers()
{
$offers = Offer::whereProjectId($this->setProjectID);
$offers = Offer::whereProjectId($this->projectID);
if( $offers->count > 0 ) $this->allowDelete = FALSE;
if( $offers->count() > 0 ) $this->allowDelete = FALSE;
}
}