<commit_before><?php
/**
* Small Cross Section of Slack User
* This user class could be considered an example of what attributes like Slack could store to write, sends access direct
* message
*
* @author <NAME> <<EMAIL>>
* @version 1.0.0
**/

class User {
	private $userId;
	/**
* id for this User; this is the primary key
* @var int $userId
**/
private $userName;
/**
* name of the User; this is a foreign key
* @var int $userName
**/
private $senderProfileId;
/**
 * id for the userPicture
 * @var int $userPicture;
 **/
// CONSTRUCTOR GOES HERE LATER

// now, write all your accessor (getter) methods
/**
 * accessor method for user id
 *
 * @return int/null value of user id
 **/
public function getUserId() {
	return($this->userId);
	

}
}<commit_msg>accessor and mutator for user<commit_after><?php
/**
* Small Cross Section of Slack User
* This user class could be considered an example of what attributes like Slack could store to write, sends access direct
* message
*
* @author <NAME> <<EMAIL>>
* @version 1.0.0
**/

class User {
	private $userId;
	/**
* id for this User; this is the primary key
* @var int $userId
**/
private $userName;
/**
* name of the User; this is a foreign key
* @var int $userName
**/
private $senderProfileId;
/**
 * id for the userPicture
 * @var int $userPicture;
 **/
// CONSTRUCTOR GOES HERE LATER

// now, write all your accessor (getter) methods
/**
 * accessor method for user id
 *
 * @return int/null value of user id
 **/
public function getUserId() {

	return($this->userId);
}
/**
 * mutator method for user id
 *
 * @param int/null $newUserId new value of user id
 * @throws \RangeException if $newUserId is not positive
 * @throws \TypeError if $newUserId is not an integer
 **/
	public function setUserId(int $newUserId = null) {
		// base case: if the user id is null, this a new user without a mySQL assigned id (yet)
		if($newUserId === null){
			$this->userId = null;
			return;
		}
		// verify the user id is positive
		if($newUserId <= 0){
			throw(new \RangeException("user id is not positive"));
		}

		// convert and store the user id
		$this->userId = $newUserId;
	}

	/**
	 * accessor method for user profile id
	 *
	 * @return int value of user profile id
	 **/
	public function getUserProfileId() {
		 return($this->userProfileId);
	}

	/**
	 * mutator method for user profile id
	 *
	 * @param int $newUserProfileId new value of user profile id
	 * @throws \RangeException if $newProfileId is not positive
	 * @throws \TypeError if $newProfileId is not an integer
	 **/
	public function setUserProfileId(int $newUserProfileId) {
			// verify the profile id is positive
		if($newUserProfileId <= 0) {
			throw(new \RangeException("user profile id is not positive"));
		}

		// convert and store the profile id $this->userProfileId = $newUserProfileId;
		}
	}
}
{'fraction_non_alphanumeric': 0.11862606232294617, 'fraction_numerical': 0.0028328611898017, 'mean_word_length': 3.512779552715655, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5170298', 'n_tokens_mistral': 912, 'n_tokens_neox': 882, 'n_words': 352}