Card::createHeader

@return Card\Header
327745
public function createHeader()
    {
        $this->childNodes->prepend(new Card\Header());

        return $this->header = $this->childNodes->first();
    }
73660
private function constructHeaders ()
    {

        // Set variables

        $headers	= NULL;

        // Make header string

        foreach ($this->_headers as $header)
        {
            $headers .= $header . $this->_nl;
        }

        // Return headers

        return $headers;

    }
60856
public function createCard($title, $paragraph = null)
    {
        $collapseId = dash($title);
        $link = new Contents\Link($title, '#' . $collapseId);
        $link->attributes->addAttribute('data-toggle', 'collapse');
        $link->attributes->addAttribute('data-parent', '#' . $this->attributes->getAttributeId());

        $card = new Card();

        $card->header->attributes->addAttribute('role', 'tab');
        $card->header->childNodes->push($link);

        $block = $card->createBlock();
        $block->attributes->setAttributeId($collapseId);

        if (isset($paragraph)) {
            $block->setParagraph($paragraph);
        }

        if ($this->childNodes->count() > 0) {
            $card->hide();
        }

        $this->childNodes->push($card);

        return $this->childNodes->last();
    }
393525
public function withHeader($header, $value)
    {
        $new = $this->psrRequest->withHeader($header, $value);
        return new self($new, $this->originalRequest);
    }
475256
protected function createHeader($name)
    {
        $new = clone $this;

        $normalized = strtolower($name);

        $name = HeaderHelper::normalizeHeaderName($name);

        $new->headerNames[$normalized] = $name;
        $new->headers[$name] = [];

        return $new;
    }
674172
public function sendHeaders()
    {
        foreach ($this->_headers as $key => $value) {
            if (is_array($value)) {
                foreach ($value as $v) {
                    header($key.': '.$v, false);
                }
            } else {
                header($key.': '.$value);
            }
        }

        return $this;
    }
811088
public function addCustomHeader($header)
    {
        self::$headers[self::CUSTOM_HEADERS][] = $this->normalizeHeaderName($header);
        return $this;
    }
314632
public function sendHeaders()
    {
        foreach ($this->getHeaders() as $name => $values) {
            foreach ($values as $value) {
                header(sprintf('%s: %s', $name, $value), false);
            }
        }

        return $this;
    }
536589
final function cards($c) {return array_map(function($data) {return
		Card::create($this, $data)
	;}, $this->cardsData($c));}
309626
public function withAddedHeader($header, $value)
    {
        $new = $this->psrRequest->withAddedHeader($header, $value);
        return new self($new, $this->originalRequest);
    }
1272022
public function createBody()
    {
        $this->childNodes->push(new Card\Body());

        return $this->body = $this->childNodes->last();
    }
1308246
protected function createHeaderDriver()
    {
        $determiner = new Determiners\Header(
            $this->app['config']['localize-middleware']['header']
        );

        $determiner->setFallback($this->app['config']['app']['fallback_locale']);

        return $determiner;
    }
1355330
public static function create(array $cards, array $customHeaders = []): BunqResponseCardBatch
    {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->post(
            vsprintf(
                self::ENDPOINT_URL_CREATE,
                [static::determineUserId()]
            ),
            [self::FIELD_CARDS => $cards],
            $customHeaders
        );

        return BunqResponseCardBatch::castFromBunqResponse(
            static::fromJson($responseRaw, self::OBJECT_TYPE_POST)
        );
    }
1137134
public function createCard( CustomerVault\Card $card )
    {
        $card->setRequiredFields(array('profileID'));
        $card->checkRequiredFields();
        $card->setRequiredFields(array(
            'cardNum',
            'cardExpiry'
        ));
        $card->setOptionalFields(array(
            'nickName',
            'merchantRefNum',
            'holderName',
            'billingAddressId',
        ));

        $request = new Request(array(
            'method' => Request::POST,
            'uri' => $this->prepareURI("/profiles/" . $card->profileID . "/cards"),
            'body' => $card
        ));
        $response = $this->client->processRequest($request);
        $response['profileID'] = $card->profileID;

        return new CustomerVault\Card($response);
    }
709977
public function generateHeader()
    {
        $format     = 'Rounds="%s", App="%s", Nonce="%s", Token="%s", Realm="%s", User="%s"';
        $expiresAt  = null;

        if ($this->getExpiresAt()) {
            $format = $format . ', ExpiresAt="%s"';
            $expiresAt  = $this->getExpiresAt()->format(\DateTime::ATOM);
        }

        return sprintf(
            $format,
            $this->getRounds(),
            $this->getApp(),
            $this->getNonce(),
            $this->getToken(),
            $this->getRealm(),
            $this->getUser(),
            $expiresAt
        );
    }
609127
private function cardFooter() : string
    {
        $html = '';

        if ($this->footer !== null) {
            $html .= '<div class="card-footer' . $this->elementAttr('footer') .
                '"' . $this->elementAttr('header') . '>' . $this->footer . '</div>';
        }

        return $html;
    }
1369882
public function header() {
		$args = func_get_args();
		$name = $args[0];
		if (count($args) == 2) {
			$this->headers[$name] = $args[1];
		}
		return $this->headers[$name];
	}