lib/DataSift/Source.php
public function fromArray(array $data)
    {
        $map = array(
            'id' => 'setId',
            'name' => 'setName',
            'source_type' => 'setSourceType',
            'status' => 'setStatus',
            'parameters' => 'setParameters',
            'auth' => 'setAuth',
            'resources' => 'setResources',
            'created_at' => 'setCreatedAt',
            'validate' => 'setValidate'
        );

        foreach ($map as $key => $setter) {
            if (isset($data[$key])) {
                $this->$setter($data[$key]);
            }
        }

        return $this;
    }
public function fromArray(array $data)
    {
        $map = array(
            'id' => 'setId',
            'name' => 'setName',
            'source_type' => 'setSourceType',
            'status' => 'setStatus',
            'parameters' => 'setParameters',
            'auth' => 'setAuth',
            'resources' => 'setResources',
            'created_at' => 'setCreatedAt',
            'validate' => 'setValidate'
        );

        foreach ($map as $key => $setter) {
            if (isset($data[$key])) {
                $this->$setter($data[$key]);
            }
        }

        return $this;
    }
public function fromArray ( array $ data ) { $ map = array ( 'id' => 'setId' , 'name' => 'setName' , 'source_type' => 'setSourceType' , 'status' => 'setStatus' , 'parameters' => 'setParameters' , 'auth' => 'setAuth' , 'resources' => 'setResources' , 'created_at' => 'setCreatedAt' , 'validate' => 'setValidate' ) ; foreach ( $ map as $ key => $ setter ) { if ( isset ( $ data [ $ key ] ) ) { $ this -> $ setter ( $ data [ $ key ] ) ; } } return $ this ; }
Hydrates this Source from an array of API responses

@param array $data

@return DataSift_Source
Hydrates this Source from an array of API responses