Cake\ElasticSearch\Association\Embedded::property PHP Method

property() public method

Get/set the property this embed is attached to.
public property ( string | null $name = null ) : string
$name string | null The property name to set.
return string The property name.
    public function property($name = null)
    {
        if ($name === null) {
            if (!$this->property) {
                $this->property = Inflector::underscore($this->alias);
            }
            return $this->property;
        }
        $this->property = $name;
    }