Location: PHPKode > projects > MongoDB Object Document Mapper > tests/Documents/Song.php
<?php

namespace Documents;

/** @EmbeddedDocument */
class Song
{
    /** @String */
    private $name;

    public function __construct($name)
    {
        $this->name = $name;
    }

    public function setName($name)
    {
        $this->name = $name;
    }

    public function getName()
    {
        return $this->name;
    }
}
Return current item: MongoDB Object Document Mapper