PartKeepr\StockBundle\Entity\StockEntry::__construct PHP Method

__construct() public method

Creates a new stock entry. A stock entry tracks how many parts were the stockLevel is the amount of items added/removed, by which user and how much the user paid for it (for adding parts only!).
public __construct ( )
    public function __construct()
    {
        $this->setDateTime(new \DateTime());
        $this->setCorrection(false);
    }