Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Http / Header / AuthenticationInfo.php
blobd7815a7e7bf6a23a74a7a084da810448d71c9fe5
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Http\Header;
12 /**
13 * @throws Exception\InvalidArgumentException
14 * @see http://www.ietf.org/rfc/rfc2617.txt
16 class AuthenticationInfo implements HeaderInterface
19 public static function fromString($headerLine)
21 $header = new static();
23 list($name, $value) = GenericHeader::splitHeaderLine($headerLine);
25 // check to ensure proper header type for this factory
26 if (strtolower($name) !== 'authentication-info') {
27 throw new Exception\InvalidArgumentException('Invalid header line for Authentication-Info string: "' . $name . '"');
30 // @todo implementation details
31 $header->value = $value;
33 return $header;
36 public function getFieldName()
38 return 'Authentication-Info';
41 public function getFieldValue()
43 return $this->value;
46 public function toString()
48 return 'Authentication-Info: ' . $this->getFieldValue();