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

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

        // Is this a scalar value representing the ID of this foreign key?
        return $this->setProjectId($value);
    }
public function setProject($value)
    {
        // Is this an instance of Project?
        if ($value instanceof \PHPCI\Model\Project) {
            return $this->setProjectObject($value);
        }

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

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

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