public function toggle_locked_state(int $timestamp) {
        // Check the current value against what we want the value to be i.e. '$timestamp'.
        $this->timelocked = ($this->timelocked && $timestamp ? $this->timelocked : $timestamp);
    }
public function toggle_locked_state(int $timestamp) {
        // Check the current value against what we want the value to be i.e. '$timestamp'.
        $this->timelocked = ($this->timelocked && $timestamp ? $this->timelocked : $timestamp);
    }
public function toggle_locked_state ( int $ timestamp ) { // Check the current value against what we want the value to be i.e. '$timestamp'. $ this -> timelocked = ( $ this -> timelocked && $ timestamp ? $ this -> timelocked : $ timestamp ) ; }
Set the locked timestamp

@param int $timestamp The value we want to store into 'locked'
Set the locked timestamp