public function __construct($algorithm = self::ALGORITHM_MD5, $partCount = 2, $partLength = 2) { $this->algorithm = (string) $algorithm; $this->partCount = (int) $partCount; $this->partLength = (int) $partLength; }