예제 #1
0
파일: Agent.php 프로젝트: chris27tina/TODO
 /**
  * Check the version of the given property in the User-Agent.
  *
  * @inherit
  */
 public function version($propertyName, $type = self::VERSION_TYPE_STRING)
 {
     $check = key(static::$additionalProperties);
     // Check if the additional properties have been added already
     if (!array_key_exists($check, parent::$properties)) {
         parent::$properties = array_merge(parent::$properties, static::$additionalProperties);
     }
     return parent::version($propertyName, $type);
 }
예제 #2
0
파일: Agent.php 프로젝트: jorisvanw/agent
 /**
  * Check the version of the given property in the User-Agent.
  *
  * @inherit
  */
 public function version($propertyName, $type = self::VERSION_TYPE_STRING)
 {
     $check = key(static::$additionalProperties);
     // Check if the additional properties have been added already
     if (!array_key_exists($check, parent::$properties)) {
         // TODO: why is mergeRules not working here?
         parent::$properties = array_merge(parent::$properties, static::$additionalProperties, $this->getConfigRules(['properties']));
     }
     return parent::version($propertyName, $type);
 }