Cake\ElasticSearch\Association\Embedded::property PHP 메소드

property() 공개 메소드

Get/set the property this embed is attached to.
public property ( string | null $name = null ) : string
$name string | null The property name to set.
리턴 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;
    }