Welcome Guest, Not a member yet? Register   Sign In
Entity with Model finder (custom setters)
#4

Yes, that's right, immutable data.
But how do I apply my class properties?
private $password

solved a problem


PHP Code:
    public function getPassword(): string
    
{
        return $this->password;
    }

    public function setPassword(string $password): self
    
{
        $this->password $this->attributes['password'] = $password;

        return $this;
    

or otherwise, but I can't set private class properties - that's the main problem
Simple CI 4 project for beginners codeigniter-expenses
Reply


Messages In This Thread
RE: Entity with Model finder (custom setters) - by ozornick - 11-09-2022, 01:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB