public function last_model_is($login = null)
    {
        $this->last_model = $login instanceof User ? $login->getId() : $login;

        return $this;
    }
public function last_model_is($login = null)
    {
        $this->last_model = $login instanceof User ? $login->getId() : $login;

        return $this;
    }
public function last_model_is ( $ login = null ) { $ this -> last_model = $ login instanceof User ? $ login -> getId ( ) : $ login ; return $ this ; }
Restrict user with the provided last model

@param User|int|null $login

@return $this
Restrict user with the provided last model