src/CFPropertyList/CFDictionary.php
public function add($key, CFType $value = null)
    {
      // anything but CFType is null, null is an empty string - sad but true
        if (!$value) {
            $value = new CFString();
        }
        $this->value[$key] = $value;
    }
public function add($key, CFType $value = null)
    {
      // anything but CFType is null, null is an empty string - sad but true
        if (!$value) {
            $value = new CFString();
        }
        $this->value[$key] = $value;
    }
public function add ( $ key , CFType $ value = null ) { // anything but CFType is null, null is an empty string - sad but true if ( ! $ value ) { $ value = new CFString ( ) ; } $ this -> value [ $ key ] = $ value ; }
Add CFType to collection.
@param string $key Key to add to collection
@param CFType $value CFType to add to collection, defaults to null which results in an empty {@link CFString}
@return void
@uses $value for adding $key $value pair
Add CFType to collection .