<commit_before><?php

/**
 * accessor method for store id
 *
 * @return int|null value of store id
 */

public function getStoreId() {
			return($this->storeId);
}

/**
 * mutator method for store id
 *
 * @param int|null $newStoreId new value of store id
 * @throws \RangeException if $newStoreId is not positive
 * @throws \TypeError if $newStoreId is not an integer
 */

public function setStoreId(int $newStoreId = null) {
			// base case: if the store id is null, this is a new store without a mySQL assigned id
			if($newStoreId === null) {
					$this->storeId = null;
					return;
			}

			// verify the store id is positive
			if($newStoreId <=0) {
					throw(new \RangeException("store id is not positive"));
			}

			// store the store id
			$this->storeId = $newStoreId;

}

/**
 * accessor method for store name
 *
 * @return int|null value of store name
 */

public function getStoreName() {
			return($this->storeName);
}

/**
 * mutator method for tweet id
 *
 * @param int|null $newStoreName new value of store name
 * @throws \InvalidArgumentException if $newStoreName is not a string or insecure
 * @throws \RangeException if $newStoreName is > 50 characters
 * @throws \TypeError if $newStoreName is not a string
 */

public function setStoreName(string $newStoreName) {
			// verify the store name is secure
			$newStoreName = trim($newStoreName);
			$newStoreName = filter_var($newStoreName, FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES);
			if(empty($newStoreName) === true) {
					throw(new \InvalidArgumentException("store name content is empty or insecure"));
			}

			// verify the store name will fit in the database
			if(strlen($newStoreName) > 50) {
					throw(new \RangeException("store name is too long"));
			}

			// store the store name
			$this->storeName = $newStoreName;
}

/**
 * accessor method for store address
 *
 * @return string value of store address
 */

public function getStoreAddress() {
			return($this->storeAddress);
}

/**
 * mutator method for store address
 *
 * @param string $newStoreAddress new value of store address
 * @throws \InvalidArgumentException if $newStoreAddress is not a string or insecure
 * @throws \RangeException if $newStoreAddress is > 100 characters
 * @throws \TypeError if $newStoreAddress is not a string
 */

public function setStoreAddress(string $newStoreAddress) {
			// verify the store address is secure
			$newStoreAddress = trim($newStoreAddress);
			$newStoreAddress = filter_var($newStoreAddress, FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES);
			if(empty($newStoreAddress) === true) {
					throw(new \InvalidArgumentException("store address is empty or insecure"));
			}

			// verify the store address will fit in the database
			if(strlen($newStoreAddress) > 100) {
					throw(new \RangeException("store address is too long"));
			}

			// store the store address
			$this->storeAddress = $newStoreAddress;
}

/**
 * accessor method for store state
 *
 * @return string value of store state
 */

public function getStoreState() {
			return($this->storeState);
}

/**
 * mutator method for store state
 *
 * @param string $newStoreState new value of store state
 * @throws \InvalidArgumentException if $newStoreState is not a string or insecure
 * @throws \RangeException if $newStoreState is > 2 characters
 * @throws \TypeError if $newStoreState is not a string
 */

public function setStoreState(string $newStoreState) {
			// verify the store state is secure
			$newStoreState = trim($newStoreState);
			$newStoreState = filter_var($newStoreState, FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES);
			if(empty($newStoreState) === true) {
					throw(new \InvalidArgumentException("store state is empty or insecure"))
			}

			// verify the store address will fit in the database
			if(strlen($newStoreState) > 2) {
					throw(new \RangeException("store state is too long"));
			}

			// store the store state
			$this->storeState = $newStoreState;
}
<commit_msg>finishing up the store class except for the constructor portion<commit_after><?php

namespace Edu\Cnm\Mball15\HamRadioConsignment;

require_once ("autoload.php");

/**
 * Small Cross Section of a Store's Information
 *
 * This can be considered a small example of what information is stored from a Store Entity.
 *
 * @author <NAME> <<EMAIL>>
 * @version 1.0.0
 */

class Store implements \JsonSerializable {
	use ValidateDate;

	/**
	 * id for this store; this is the primary key
	 * @var int $storeId
	 */
	private $storeId;
	/**
	 * the name of the store
	 * @var string $storeName
	 */
	private $storeName;
	/**
	 * the address of the store
	 * @var string $storeAddress
	 */
	private $storeAddress;
	/**
	 * the state where store is located
	 * @var string $storeState
	 */
	private $storeState;
	/**
	 * the zipcode where store is located
	 * @var string $storeZip
	 */
	private $storeZip;
	/**
	 * the phone number of the store
	 * @var string $storePhone
	 */
	private $storePhone;
	/**
	 * the email address of the store
	 * @var string $storePhone
	 */
	private $storeEmail;

	/**
	 * accessor method for store id
	 *
	 * @return int|null value of store id
	 */

	public function getStoreId() {
		return($this->storeId);
	}

	/**
	 * mutator method for store id
	 *
	 * @param int|null $newStoreId new value of store id
	 * @throws \RangeException if $newStoreId is not positive
	 * @throws \TypeError if $newStoreId is not an integer
	 */

	public function setStoreId(int $newStoreId = null) {
		// base case: if the store id is null, this is a new store without a mySQL assigned id
		if($newStoreId === null) {
			$this->storeId = null;
			return;
		}

		// verify the store id is positive
		if($newStoreId <=0) {
			throw(new \RangeException("store id is not positive"));
		}

		// store the store id
		$this->storeId = $newStoreId;

	}

	/**
	 * accessor method for store name
	 *
	 * @return int|null value of store name
	 */

	public function getStoreName() {
		return($this->storeName);
	}

	/**
	 * mutator method for tweet id
	 *
	 * @param int|null $newStoreName new value of store name
	 * @throws \InvalidArgumentException if $newStoreName is not a string or insecure
	 * @throws \RangeException if $newStoreName is > 50 characters
	 * @throws \TypeError if $newStoreName is not a string
	 */

	public function setStoreName(string $newStoreName) {
		// verify the store name is secure
		$newStoreName = trim($newStoreName);
		$newStoreName = filter_var($newStoreName, FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES);
		if(empty($newStoreName) === true) {
			throw(new \InvalidArgumentException("store name content is empty or insecure"));
		}

		// verify the store name will fit in the database
		if(strlen($newStoreName) > 50) {
			throw(new \RangeException("store name is too long"));
		}

		// store the store name
		$this->storeName = $newStoreName;
	}

	/**
	 * accessor method for store address
	 *
	 * @return string value of store address
	 */

	public function getStoreAddress() {
		return($this->storeAddress);
	}

	/**
	 * mutator method for store address
	 *
	 * @param string $newStoreAddress new value of store address
	 * @throws \InvalidArgumentException if $newStoreAddress is not a string or insecure
	 * @throws \RangeException if $newStoreAddress is > 100 characters
	 * @throws \TypeError if $newStoreAddress is not a string
	 */

	public function setStoreAddress(string $newStoreAddress) {
		// verify the store address is secure
		$newStoreAddress = trim($newStoreAddress);
		$newStoreAddress = filter_var($newStoreAddress, FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES);
		if(empty($newStoreAddress) === true) {
			throw(new \InvalidArgumentException("store address is empty or insecure"));
		}

		// verify the store address will fit in the database
		if(strlen($newStoreAddress) > 100) {
			throw(new \RangeException("store address is too long"));
		}

		// store the store address
		$this->storeAddress = $newStoreAddress;
	}

	/**
	 * accessor method for store state
	 *
	 * @return string value of store state
	 */

	public function getStoreState() {
		return($this->storeState);
	}

	/**
	 * mutator method for store state
	 *
	 * @param string $newStoreState new value of store state
	 * @throws \InvalidArgumentException if $newStoreState is not a string or insecure
	 * @throws \RangeException if $newStoreState is > 2 characters
	 * @throws \TypeError if $newStoreState is not a string
	 */

	public function setStoreState(string $newStoreState) {
		// verify the store state is secure
		$newStoreState = trim($newStoreState);
		$newStoreState = filter_var($newStoreState, FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES);
		if(empty($newStoreState) === true) {
			throw(new \InvalidArgumentException("store state is empty or insecure"));
			}

		// verify the store address will fit in the database
		if(strlen($newStoreState) > 2) {
			throw(new \RangeException("store state is too long"));
		}

		// store the store state
		$this->storeState = $newStoreState;
	}

	/**
	 * accessor method for store zipcode
	 *
	 * @return string value of store zipcode
	 */

	public function getStoreZip() {
		return($this->storeZip);
	}

	/**
	 * mutator method for store zipcode
	 *
	 * @param string $newStoreZip new value of store zipcode
	 * @throws \InvalidArgumentException if $newStoreZip is not a string or insecure
	 * @throws \RangeException if $newStoreZip is > 5 characters
	 * @throws \TypeError if $newStoreZip is not a string
	 */

	public function setStoreZip(string $newStoreZip) {
		// verify the store zipcode is secure
		$newStoreZip = trim($newStoreZip);
		$newStoreZip = filter_var($newStoreZip, FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES);
		if(empty($newStoreZip) === true) {
			throw(new \InvalidArgumentException("zipcode is empty or insecure"));
		}

		// verify the store zipcode will fit in the database
		if(strlen($newStoreZip) > 5) {
			throw(new \RangeException("zipcode is too long"));
		}

		// store the store's zipcode
		$this->storeZip = $newStoreZip;
	}

	/**
	 * accessor method for store phone number
	 *
	 * @return string value of store phone number
	 */

	public function getStorePhone() {
		return($this->storePhone);
	}

	/**
	 * mutator method for store phone number
	 *
	 * @param string $newStorePhone new value of store phone number
	 * @throws \InvalidArgumentException if $newStorePhone is not a string or insecure
	 * @throws \RangeException if $newStorePhone is > 30 characters
	 * @throws \TypeError if $newStorePhone is not a string
	 */

	public function setStorePhone(string $newStorePhone) {
		// verify the store phone number is secure
		$newStorePhone = trim($newStorePhone);
		$newStorePhone = filter_var($newStorePhone, FILTER_SANITIZE_STRING, FILTER_FLAG_NO_ENCODE_QUOTES);
		if(empty($newStorePhone) === true) {
			throw(new \InvalidArgumentException("phone number is empty or insecure"));
		}

		// verify the phone number will fit in the database
		if(strlen($newStorePhone) > 30) {
			throw(new \RangeException("phone number too long"));
		}

		// store the phone number
		$this->storePhone = $newStorePhone;
	}

	/**
	 * accessor method for store email
	 *
	 * @return string value of store email
	 */

	public function getStoreEmail() {
		return($this->storeEmail);
	}

	/**
	 * mutator method for store email
	 *
	 * @param string $newStoreEmail new value of store email
	 * @throws \InvalidArgumentException if $newStoreEmail is not a string or insecure
	 * @throws \RangeException if $newStoreEmail is > 128 characters
	 * @throws \TypeError if $newStoreEmail is not a string
	 */

	public function setStoreEmail(string $newStoreEmail) {
		// verify the store email is secure
		$newStoreEmail = trim($newStoreEmail);
		$newStoreEmail = filter_var($newStoreEmail, FILTER_SANITIZE_EMAIL);
		if(empty($newStoreEmail) === true) {
			throw(new \InvalidArgumentException("store email is empty or insecure"));
		}

		// verify the store email will fit in the database
		if(strlen($newStoreEmail) > 128) {
			throw(new \RangeException("store email address is too long"));
		}

		// store the store's email address
		$this->storeEmail = $newStoreEmail;
	}

}
{'fraction_non_alphanumeric': 0.10414784394250513, 'fraction_numerical': 0.0035318275154004107, 'mean_word_length': 3.8012618296529967, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 48, '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': '174274', 'n_tokens_mistral': 4017, 'n_tokens_neox': 3529, 'n_words': 1223}