App\Models\Forum\TopicCover::owner PHP Method

owner() public method

public owner ( )
    public function owner()
    {
        if ($this->_owner[0] === false) {
            $this->_owner[0] = true;
            if ($this->topic !== null) {
                $this->_owner[1] = User::find($this->topic->topic_poster);
            }
            if ($this->_owner[1] === null) {
                $this->_owner[1] = $this->user;
            }
        }
        return $this->_owner[1];
    }