public function create(Package $package, $path, $plain = true)
	{
		$directory = $this->createDirectory($package, $path);

		// To create the package, we will spin through a list of building blocks that
		// make up each package. We'll then call the method to build that block on
		// the class, which keeps the actual building of stuff nice and cleaned.
		foreach ($this->getBlocks($plain) as $block)
		{
			$this->{"write{$block}"}($package, $directory, $plain);
		}

		return $directory;
	}
public function create(Package $package, $path, $plain = true)
	{
		$directory = $this->createDirectory($package, $path);

		// To create the package, we will spin through a list of building blocks that
		// make up each package. We'll then call the method to build that block on
		// the class, which keeps the actual building of stuff nice and cleaned.
		foreach ($this->getBlocks($plain) as $block)
		{
			$this->{"write{$block}"}($package, $directory, $plain);
		}

		return $directory;
	}
public function create ( Package $ package , $ path , $ plain = true ) { $ directory = $ this -> createDirectory ( $ package , $ path ) ; // To create the package, we will spin through a list of building blocks that // make up each package. We'll then call the method to build that block on // the class, which keeps the actual building of stuff nice and cleaned. foreach ( $ this -> getBlocks ( $ plain ) as $ block ) { $ this -> { "write{$block}" } ( $ package , $ directory , $ plain ) ; } return $ directory ; }
Create a new package stub.

@param  \Fly\Workbench\Package  $package
@param  string  $path
@param  bool    $plain
@return string
Create a new package stub .