Airship\Cabin\Hull\Blueprint\CustomPages::setCabin PHP Method

setCabin() public method

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

Usage Example

Example #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);
 }