Airship\Cabin\Hull\Blueprint\CustomPages::setCabin PHP Méthode

setCabin() public méthode

Set the cabin for this gear
public setCabin ( string $cabin ) : self
$cabin string
Résultat self
    public function setCabin(string $cabin) : self
    {
        $this->cabin = $cabin;
        return $this;
    }

Usage Example

Exemple #1
0
 /**
  * This function is called after the dependencies have been injected by
  * AutoPilot. Think of it as a user-land constructor.
  */
 public function airshipLand()
 {
     $this->pages = $this->blueprint('CustomPages');
     $this->pages->setCabin($this->cabin);
 }