src/Model/AssociationsAwareTrait.php
protected function setAssociation(string $type, string $alias, array $options) : void
    {
        $this->{$type}($alias, $options);
    }
protected function setAssociation(string $type, string $alias, array $options) : void
    {
        $this->{$type}($alias, $options);
    }
protected function setAssociation ( string $ type , string $ alias , array $ options ) : void { $ this -> { $ type } ( $ alias , $ options ) ; }
Association setter method.

@see \Cake\ORM\Table::belongsTo()
@see \Cake\ORM\Table::belongsToMany()
@see \Cake\ORM\Table::hasMany()
@see \Cake\ORM\Table::hasOne()

@param string $type Association type
@param string $alias Association alias
@param mixed[] $options Association options
@return void
Association setter method .