protected function passwordHash(Entity\Users $usersEntity)
    {
        if ($usersEntity->getPassword() !== null) {
            $usersEntity->setPassword($this->getValidHash($usersEntity->getPassword()));
        }
    }
protected function passwordHash(Entity\Users $usersEntity)
    {
        if ($usersEntity->getPassword() !== null) {
            $usersEntity->setPassword($this->getValidHash($usersEntity->getPassword()));
        }
    }
protected function passwordHash ( Entity \ Users $ usersEntity ) { if ( $ usersEntity -> getPassword ( ) !== null ) { $ usersEntity -> setPassword ( $ this -> getValidHash ( $ usersEntity -> getPassword ( ) ) ) ; } }
Hash user passwords on save.

@param Entity\Users $usersEntity
Hash user passwords on save .