public function withDefaultOwner(CanBeOwnerContract $owner = null)
    {
        $this->defaultOwner = $owner ?: $this->resolveDefaultOwner();
        if (isset($this->withDefaultOwnerOnCreate)) {
            $this->withDefaultOwnerOnCreate = false;
        }

        return $this;
    }
public function withDefaultOwner(CanBeOwnerContract $owner = null)
    {
        $this->defaultOwner = $owner ?: $this->resolveDefaultOwner();
        if (isset($this->withDefaultOwnerOnCreate)) {
            $this->withDefaultOwnerOnCreate = false;
        }

        return $this;
    }
public function withDefaultOwner ( CanBeOwnerContract $ owner = null ) { $ this -> defaultOwner = $ owner ? : $ this -> resolveDefaultOwner ( ) ; if ( isset ( $ this -> withDefaultOwnerOnCreate ) ) { $ this -> withDefaultOwnerOnCreate = false ; } return $ this ; }
Set owner as default for entity.

@param null|\Cog\Contracts\Ownership\CanBeOwner $owner
@return $this
Set owner as default for entity .