projecten
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user