src/Image.php
public function getStack($stackName, $organization = '')
    {
        $contents = $this
            ->call('GET', implode('/', [self::STACK_RESOURCE, $this->getOrganizationName($organization), $stackName]))
            ->getBody()
            ->getContents();

        return Stack::createFromJsonResponse($contents);
    }
public function getStack($stackName, $organization = '')
    {
        $contents = $this
            ->call('GET', implode('/', [self::STACK_RESOURCE, $this->getOrganizationName($organization), $stackName]))
            ->getBody()
            ->getContents();

        return Stack::createFromJsonResponse($contents);
    }
public function getStack ( $ stackName , $ organization = '' ) { $ contents = $ this -> call ( 'GET' , implode ( '/' , [ self :: STACK_RESOURCE , $ this -> getOrganizationName ( $ organization ) , $ stackName ] ) ) -> getBody ( ) -> getContents ( ) ; return Stack :: createFromJsonResponse ( $ contents ) ; }
Return a stack.

@param string $stackName    Stack name
@param string $organization Optional organization name

@throws GuzzleException
@throws \RuntimeException

@return Stack
Return a stack .