public function setBuild($value)
    {
        // Is this an instance of Build?
        if ($value instanceof \PHPCI\Model\Build) {
            return $this->setBuildObject($value);
        }

        // Is this an array representing a Build item?
        if (is_array($value) && !empty($value['id'])) {
            return $this->setBuildId($value['id']);
        }

        // Is this a scalar value representing the ID of this foreign key?
        return $this->setBuildId($value);
    }
public function setBuild($value)
    {
        // Is this an instance of Build?
        if ($value instanceof \PHPCI\Model\Build) {
            return $this->setBuildObject($value);
        }

        // Is this an array representing a Build item?
        if (is_array($value) && !empty($value['id'])) {
            return $this->setBuildId($value['id']);
        }

        // Is this a scalar value representing the ID of this foreign key?
        return $this->setBuildId($value);
    }
public function setBuild ( $ value ) { // Is this an instance of Build? if ( $ value instanceof \ PHPCI \ Model \ Build ) { return $ this -> setBuildObject ( $ value ) ; } // Is this an array representing a Build item? if ( is_array ( $ value ) && ! empty ( $ value [ 'id' ] ) ) { return $ this -> setBuildId ( $ value [ 'id' ] ) ; } // Is this a scalar value representing the ID of this foreign key? return $ this -> setBuildId ( $ value ) ; }
Set Build - Accepts an ID, an array representing a Build or a Build model.

@param $value mixed
Set Build - Accepts an ID an array representing a Build or a Build model .